[3.0] Theme split (wave 4, part 27) — point the quick buttons at design tokens - #9469
Merged
live627 merged 1 commit intoAug 10, 2026
Conversation
The quick button strip on every post and topic row, and the drop down that hangs off it, were the next group of hard-coded values left in index.css. .button itself has read --button-* since wave 2; these are the variants that sit on top of it. Every token holds the value the rule has today, so nothing renders differently. The drop down sets a border and then overrides its left and top edges, so those keep their own tokens and all three stay shorthands. The hover colour is named for the quick buttons rather than the buttons, even though .button is listed in the same selector: the rule immediately below it puts --button-color_hover back for .button, so the value only ever reaches a quick button. Signed-off-by: Mathias Albert <mathiaspapealbert@hotmail.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
Collaborator
Author
|
Correction to the last paragraph of the description: the claim that a topic display draws no The verification in this PR is unaffected: the raw-source cascade chains were captured on |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Part of the #7933 split, following #9467 and #9468.
The quick button strip and the drop down that hangs off it were the next group of hard-coded values in
index.css..buttonitself has read--button-*since wave 2; these are the variants that sit on top of it — the strip's own colour, the four corner radii that make the buttons read as one bar, the moderation checkbox focus ring, and the post options drop down.24 tokens in three groups, placed after
/** Buttons **/, so this does not collide with #9467, #9468, #9443 or #9448. Every token holds the value the rule has today, so nothing renders differently.The drop down sets a border and then overrides its left and top edges, so those keep their own tokens and all three stay shorthands.
One naming call worth flagging. The hover colour is
--quickbutton-color_hovereven though.button:hoveris listed in the same selector:The rule immediately below puts
--button-color_hoverback for.button, so#222only ever reaches a quick button. Naming it after the button would be wrong about what it does.Verification
0 differences, by both methods:
index.cssfetched over HTTP, rule bodies parsed out of the text and applied to a probe in cascade order — including:first-child,:last-child,:only-child,:hoverand:focus, and the.buttonoverride chain above. 11 chains x 39 longhands = 429 values, 0 differences.?action=recent,?action=pmand the reply form's previous-posts list. 30 elements, 1200 values, 0 differences.Rule text is taken from the file rather than from
CSSRule.style.cssText, which cannot round-trip abordershorthand holding avar()that is then overridden on one edge — see #9468 for what that looks like when it goes wrong.Noted while finding elements to measure, not addressed here: a topic display draws no
.quickbuttonsat all, logged in as an admin — they appear on the recent-posts list, the PM index and the reply form, but not under a post on?topic=.Issues References (Fixes|Related|Closes)
Related: #7933, #9467, #9468