Skip to content

Conversation

@mdwyer6
Copy link
Contributor

@mdwyer6 mdwyer6 commented Sep 7, 2025

Which problem is this PR solving?

Fixes accessibility issues with topbar's tab navigation experience.

  • The tab order was starting from the search box on the right half of the topbar and subsequently jumping left to the nav items.
  • There was no focus ring on the topbar nav menu items

Description of the changes

  • Tab navigation ordering in top bar now flows left to right as expected
  • Tabbing into the topbar nav now shows focus ring

Screenshot of focus ring:
image

Large screen:
image

Small screen:
image

How was this change tested?

  • Tested various screen sizes for visual regressions in responsive behavior
  • Tested with keyboard navigation and programmatically triggering focus ring

Checklist

@mdwyer6 mdwyer6 requested a review from a team as a code owner September 7, 2025 16:51
@mdwyer6 mdwyer6 requested review from albertteoh and removed request for a team September 7, 2025 16:51
@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 7, 2025

How to use the Graphite Merge Queue

Add 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
Copy link

codecov bot commented Sep 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.13%. Comparing base (d7389f7) to head (7eba8a5).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mdwyer6 mdwyer6 changed the title A11y topbar A11y fixes for topbar Sep 7, 2025
<Menu
theme="dark"
items={itemsGlobalRight}
className="Menu--item"
Copy link
Member

Choose a reason for hiding this comment

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

what about ub-right?

Copy link
Contributor Author

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

Copy link
Contributor Author

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:

  1. Swapped the order of the two menus so tab order would behave
  2. 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)
  3. Unrelated with above two changes: added outline: 'revert' to bring back focus ring that ant design overrides

Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes flexbox is taking care of that now. here is a screenshot on fairly wide monitor:
image

Copy link
Contributor Author

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.

@yurishkuro yurishkuro added the changelog:bugfix-or-minor-feature 🐞 Bug fixes, Minor Improvements label Sep 7, 2025
@yurishkuro yurishkuro added this pull request to the merge queue Sep 7, 2025
@yurishkuro yurishkuro removed this pull request from the merge queue due to a manual request Sep 7, 2025
@yurishkuro yurishkuro changed the title A11y fixes for topbar Fix top bar tab order Sep 7, 2025
@yurishkuro yurishkuro added this pull request to the merge queue Sep 7, 2025
Merged via the queue into jaegertracing:main with commit 940f39f Sep 7, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:bugfix-or-minor-feature 🐞 Bug fixes, Minor Improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants