-
Notifications
You must be signed in to change notification settings - Fork 0
USE-188: Responsive behavior for tab bar #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 19826599962Details
💛 - Coveralls |
| @@ -0,0 +1,89 @@ | |||
| // =========================================================================== | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if the is an edge case you prefer to come back to, but if I start with a wide viewport from the USE UI home and then run a search and then narrow my viewport it does not collapse.
If I then refresh, I get the collapsed mode and it works when I expand and contract the viewport as expected.
This issue is being caused by the JS throwing an error and stopping execution.
|
|
||
| // Store references to relevant selectors | ||
| const container = document.querySelector('#tabs') | ||
| const primary = container.querySelector('.primary') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this error in the console when this is loaded from the main USE UI page.
null is not an object (evaluating 'container.querySelector')
We likely either need to change this logic here or to not error which prevents the script from running further or only load this script on pages that have that selector.
This script erroring prevents it from working when a search is run.
One way to address this might be to wrap this logic in a function and then have a return block at the start of the function if the required DOM elements are not present.
JPrevost
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to address the errors when starting from the USE homepage, either by resolving the problem or opening a ticket to come back to it.
|
@JPrevost I switched to loading via |
Developer
Implements responsive behavior for our tab bar. When the screen is too narrow, a "more" button is created with an overflow menu beneath it.
This work also includes final names, approved by UXWS, for our tabs.
Notable includes in this work:
lielements were clicked. It now only fires when a link is clicked.<select>dropdown menus up and down keys are how folks navigate, but because this feels like a navigation menu, where tab is typically how folks navigate, it felt right to keep it that way.Accessibility
New ENV
Approval beyond code review
Additional context needed to review
E.g., if the PR includes updated dependencies and/or data
migration, or how to confirm the feature is working.
Code Reviewer
Code
added technical debt.
Documentation
(not just this pull request message).
Testing