-
Notifications
You must be signed in to change notification settings - Fork 591
Fix top bar tab order #3067
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
Fix top bar tab order #3067
Conversation
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3067 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 257 257
Lines 8004 8004
Branches 2092 2091 -1
=======================================
Hits 7855 7855
Misses 149 149 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Michael Dwyer <[email protected]>
Signed-off-by: Michael Dwyer <[email protected]>
| <Menu | ||
| theme="dark" | ||
| items={itemsGlobalRight} | ||
| className="Menu--item" |
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.
what about ub-right?
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.
ub-right class just applies float: right as far as i can tell. this is no longer needed since i swapped the ordering of the markup to match the visual order and flexbox layout now takes care of spacing
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.
it's not super clear from the diff but i've done 3 things in this PR:
- Swapped the order of the two menus so tab order would behave
- Replace the float layout with equivalent flexbox one because after swapping menus the float layout doesn't work anymore (it'll wrap the second menu to a newline)
- Unrelated with above two changes: added
outline: 'revert'to bring back focus ring that ant design overrides
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.
this is no longer needed since i swapped the ordering of the markup to match the visual order and flexbox layout now takes care of spacing
but we still want the 2nd menu to be flushed right, as well as the search bar.
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.
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 would've kept the float layout if I could to keep this diff tightly focused but it's a quirk of how floats work that you cannot easily get the same behavior when the order is reversed.

Which problem is this PR solving?
Fixes accessibility issues with topbar's tab navigation experience.
Description of the changes
Screenshot of focus ring:

Large screen:

Small screen:

How was this change tested?
Checklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test