Keep Download button text color stable while clicking#5985
Keep Download button text color stable while clicking#5985fatadel merged 2 commits intofirefox-devtools:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5985 +/- ##
=======================================
Coverage 85.34% 85.34%
=======================================
Files 318 318
Lines 31922 31922
Branches 8834 8745 -89
=======================================
Hits 27244 27244
Misses 4246 4246
Partials 432 432 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Looks reasonable to me, but did you manage to figure out why this started to happen after the dark mode? Because I remember seeing this issue in a few more places. For example, the latest one I remember was when I clicked a profile inside https://profiler.firefox.com/uploaded-recordings/ . But then I came back to reproduce it again and I couldn't.. I donno exactly what's going on and it would be good to figure it out. |
|
The root cause is concrete and the same mechanism explains the uploaded-recordings flash too: What changed. PR #5740 (dark mode) added these to a { color: var(--link-foreground-color); }
a:visited { color: var(--link-visited-foreground-color); }
a:active { color: var(--link-active-foreground-color); } /* this is the culprit */Before that PR there was no global Why it shows up on the Download button. The general shape of the regression. Any place we use an |
|
Oh, thanks for finding that! Hmmm. I'm leaning towards just removing that |
It styled every anchor red while clicked, including ones styled as buttons (e.g. the Download button rendered via BlobUrlLink). Introduced in firefox-devtools#5740. Removing it lets anchors keep whatever color their wrapping class sets, avoiding the same trap for any future link-styled element. Fixes firefox-devtools#5948
3cb4aa6 to
c459b0a
Compare
Agree! Re-pushed 😊 |
canova
left a comment
There was a problem hiding this comment.
Looks good to me, thanks! Did some manual testing in a bunch of place and I don't see anywhere broken/bad.
Changes: [Markus Stange] Use custom splitter component (#4606) [fatadel] Fix Download button text color when clicked (#5985) [Samuel Glauser] Fix fullscreen icon size in bottom box (#5987) [Nazım Can Altınova] Add `profiler-cli` for querying profiles (#5963) [Nazım Can Altınova] Bump profiler cli version to 0.1.0 (#5996) [Markus Stange] Switch from max-height to maxHeight in JSX style={{...}}. (#5990) [carverdamien] Fix comment about how time and duration are stored (#5997) [Nazım Can Altınova] Do not show console error when libnames are failed to parse as a URL (#5993) [Nazım Can Altınova] Fix the unnecessary stringify of Uint8Array contents during zip profile extraction (#6004) And special thanks to our localizers: en-CA: chutten en-CA: Saurabh en-GB: Ian Neal es-CL: ravmn fy-NL: Fjoerfoks ia: Melo46 nl: Mark Heijl ru: Valery Ledovskoy sv-SE: Andreas Pettersson
Drop the global
a:activerule. It styled every anchor red while clicked, including ones styled asbuttons (e.g. the Download button rendered via BlobUrlLink). Introduced in #5740. Removing it lets anchors keep whatever color their wrapping class sets, avoiding the same trap for any future link-styled element.
Before
Profile
After
Profile
Fixes #5948