Skip to content

Conversation

@Elodie-DeMatteis-Upf
Copy link
Contributor

@Elodie-DeMatteis-Upf Elodie-DeMatteis-Upf commented Jan 23, 2026

What does this PR do?

OSS::Anchor component is using EmberJS LinkTo component to render internal routes. Its default behavior is to add an active CSS class when the LinkTo route matches the current route. However, in some cases we may need to manage the active styling independently of the route.
This PR adds a new disableAutoActive optional arg to the OSS::Anchor component that will, if true, prevent the LinkTo from being automatically set in an "active" state.
The solution is using LinkTo current-when argument, documented here.

This new arg is propagated from the group items directly through the OSS::Layout::Sidebar::Item component to the OSS::Anchor component.

Related to: #6694

What are the observable changes?

Upluence settings page: the active state is managed directly by the sidebar, not by Ember. Here, several items match the same route, but only the one with the current section is "active".
Capture d’écran 2026-01-23 à 16 34 23

Upfluence Search page: corresponding sidebar item without disableAutoActive is correctly in an "active" state.
Capture d’écran 2026-01-23 à 15 25 09

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

@Elodie-DeMatteis-Upf Elodie-DeMatteis-Upf self-assigned this Jan 23, 2026
@linear
Copy link

linear bot commented Jan 23, 2026

Copy link
Contributor

@JulienVannier66 JulienVannier66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM

@Elodie-DeMatteis-Upf Elodie-DeMatteis-Upf merged commit 10da1b1 into feature/improve-settings-navigation Jan 28, 2026
3 checks passed
@Elodie-DeMatteis-Upf Elodie-DeMatteis-Upf deleted the edm/vel-6694 branch January 28, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants