You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open/close state logic should be aligned between user interaction and programmatic access. If a navigation section is opened programmatically, all other open navigation sections should be closed (like when user clicks).
Refactor active state. We want to replace the active property with an external possibility of setting active and an internal state of being active.
Remove active property and apply styles via the data-active attribute.
Consumers can add the sbb-active css class to navigation action to mark it as active. We do not remove/change the sbb-active css class.
Always when opening or reopening the navigation, the navigation marker uses the sbb-active css class to apply the data-active to either true or false depending on the availability of the sbb-active css class. This implies that no state is carried over between opening, closing and reopening the navigation.
Clicking a navigation action should also update the active state (data-active).
When a first level navigation action (button, a link should not have a navigation section connected) with a connected navigation section is initially active, it should also open the navigation section.
If a navigation action is marked with sbb-active css class, it should receive focus (if a nested navigation section is available, the section (or fist action in section) should receive focus or if there is a navigation action with an sbb-active class within the section, the action should receive focus)
Check if the API for resetting the marker can be removed.
Remove class="sbb-navigation-marker__action" ?data-active=${action.active} in navigation-marker as it is not used. (Might already be removed.)
The text was updated successfully, but these errors were encountered:
sbb-active
css class to navigation action to mark it as active. We do not remove/change thesbb-active
css class.sbb-active
css class to apply thedata-active
to either true or false depending on the availability of thesbb-active
css class. This implies that no state is carried over between opening, closing and reopening the navigation.data-active
).sbb-active
css class, it should receive focus (if a nested navigation section is available, the section (or fist action in section) should receive focus or if there is a navigation action with ansbb-active
class within the section, the action should receive focus)class="sbb-navigation-marker__action" ?data-active=${action.active}
in navigation-marker as it is not used. (Might already be removed.)The text was updated successfully, but these errors were encountered: