-
Notifications
You must be signed in to change notification settings - Fork 453
Refine tree view a11y #5779
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
Refine tree view a11y #5779
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5779 +/- ##
=======================================
Coverage 85.75% 85.75%
=======================================
Files 318 318
Lines 31240 31240
Branches 8600 8504 -96
=======================================
Hits 26790 26790
Misses 4020 4020
Partials 430 430 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
canova
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.
Thanks for the PR! I added a comment about the opacity of the label frames when they are not selected. Let me know what you think!
I've added a before and after profile to the PR's first message. Additional to the images, we usually put these before and after profile links so the person who's reviewing the PR can test it also. It would be great if you can do that in the next PRs. You can find the deploy preview link of this PR in the checks below that's marked as netlify/perf-html/deploy-preview. But also the url itself is very predictable. It's always https://deploy-preview-<PR-number>--perf-html.netlify.app/.
Ah also, now that we have dark mode (still in the main branch only, not deployed yet). Could you also test to see if this works well with the dark mode? You can enable it by going to the home page (https://deploy-preview-5779--perf-html.netlify.app/) and pressing the dark mode checkbox.
|
|
||
| .treeViewMainColumn.dim { | ||
| opacity: 0.7; | ||
| opacity: 0.9; |
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.
Non selected version of this dimmed color was actually passing the WCAG AAA standards. So it's probably okay to leave it as 0.7 when it's not selected. But it fails the a11y check when it's selected. Can we change the opacity of this only when it's selected (similar to the other one)?
554c509 to
a4fd515
Compare
|
Thanks for your valuable feedback, @canova! I've refined the changes for dimming, so that now the opacity level is increased only when selected. I've tested the changes with the Dark Mode - looks good and accessible (see below). Appendage Column
Label Frames
|
canova
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.
Thanks for the updates, looks good to me!
Now that you are in the firefox-devtools org, you should be able to merge this PR yourself. You can see our process on how to merge PRs here: https://github.com/firefox-devtools/profiler/blob/main/CONTRIBUTING.md#merging-pull-requests
We either use "create a merge commit" or "squash and merge" depending on the PR. Squash is useful when the PR only has a single commit, and merge commit is useful when we have different commits in the PR that are split up into logical chunks. When we use the merge commit, we try to be more careful on the commit messages and make sure that they are split well. To do that, we do interactive rebasing, squashing and amending commits a lot to have a good commit history. For example, an optional improvement in this PR would be to merge 2nd and 3rd commits. But if you choose to squash, then you don't have to think about that.
Lots of exciting changes 🎉: [arai-a] Put radio buttons into labels (#5738) [DaniPopes] Update comment for "unique-string" (#5741) [Karan Pradhan] Hide tooltip filter button in non-sticky tooltips and add hideFilterButton tests (#5718) [arai-a] Add a menu to copy the Marker Table as text (#5732) [arai-a] Make the entire list item clickable for the "Full Range" (#5742) [Markus Stange] Move symbol table demangling out of SymbolStore into SymbolProvider (#5746) [Markus Stange] Remove SVG asset imports from profile-data.ts (#5747) [arai-a] Do not apply sticky tooltip on double click (#5754) [arai-a] Skip the ChartCanvas redraw on the Viewport's internal default state usage (#5744) [Markus Stange] Stop blindly extracting uint8array.buffer after calling compress() (#5753) [Markus Stange] In the assembly view state, refer to the current symbol by index (#5755) [Markus Stange] Fix "scroll to hotspot" functionality in the source view + assembly view (#5759) [Markus Stange] Keep the colorField markerSchema field when processing profiles in the gecko format (#5760) [Markus Stange] Implement dark mode (#5740) [Markus Stange] Fix light-mode colors (#5765) [Markus Stange] Tweak dark mode colours. (#5767) [Nazım Can Altınova] Enable some basic type-aware lints (#5775) [Markus Stange] Allow seeing different assembly code for the same function (#5349) [fatadel] Refine tree view a11y (#5779) [fatadel] Align double-click behavior of stack chart with flame graph (#5782) [Markus Stange] Split gz.ts properly into node and browser variants (#5764) [Markus Stange] Simplify and optimize the computation of per-call-node line and address timings (#5770) [Nazım Can Altınova] Move the dark mode toggle to devtools console (#5783) [Nazım Can Altınova] 🔃 Sync: l10n -> main (Jan 27, 2026) (#5785) [Nazım Can Altınova] Improve Chrome importer marker payload logic (#5717) [Markus Stange] Add a Focus Self transform (#5774) [Nazım Can Altınova] Enable the Turkish locale in production (#5786) And huge thanks to our localizers 🎉 : be: Mikalai Udodau de: Ger de: Michael Köhler el: Jim Spentzos en-CA: chutten en-CA: Saurabh en-GB: Ian Neal en-GB: Saurabh es-CL: ravmn fy-NL, nl: Fjoerfoks fr: Skywarp fr: Théo Chevalier fur: Fabio Tomat fy-NL: Fjoerfoks ia: Melo46 it: Francesco Lodolo [:flod] nl: Fjoerfoks nl: Mark Heijl pt-BR: Marcelo Ghelman ru: berry ru: Valery Ledovskoy sv-SE: Andreas Pettersson tr: Grk zh-CN: Olvcpr423 zh-CN: wxie zh-TW: Pin-guang Chen


The issue fixes #5674.
The original issue mentions inaccessibility of the .treeViewAppendageColumn element (the filename). However, during development I've also noticed inaccessibility of the label frames. As discussed in the matrix channel, for now I just increased their opacity level. Shall we create an issue for further improvement of the dimming functionality? @canova
Appendage Column
Before
After
Label Frames
Before
After
Deploy preview: Before / After
Closes #5674.