Badges aren't visible on top nav navigation buttons on small screens #3098
Labels
component: ic-top-navigation
The generic component, includes both the web component and the React component
Milestone
Summary of the bug
On a top nav on a small screen, any badges that have been added to navigation buttons are not visible.
🪜 How to reproduce
📸 Screenshots or code
Badge is visible on a larger screen e.g.:
But then you can't see it anywhere where you make the screen smaller (see the "Notifications" button):
🧐 Expected behaviour
The badge should move to the inline position when on a small screen (e.g. like the badge in this tabs Storybook example).
📝 Acceptance Criteria
Given there is a top navigation on a page with a navigation button that has a badge on it
When I make the screen smaller and expand the navigation menu
Then the badge should be visible and displayed in the "inline" position
Additional info
Similar to #3079.
I think the
position
prop on ic-badge should be overridden to always be "inline" when on a small screen (because allowing the "near" and "far" positions would mean the badge is cut off at the side of the screen).The text was updated successfully, but these errors were encountered: