Repository navigation
Use percentages for the navbar dark color-mix() weights - #42925
Merged
Merged
Conversation
CSS Color 5 requires a <percentage> for the color-mix() mixing weight. A bare number parses in a custom property declaration, but makes the value invalid at computed-value time. Every .navbar-dark link color was dropped, and the element inherited its color instead. No browser reports a warning. The four values came from the v5 rgba($white, .55) form and kept the decimal. The other 28 color-mix() calls in the stylesheet use percentages. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
color-mix()needs a<percentage>as the mixing weight. Four$navbar-dark-tokensvalues pass a bare number instead, so.navbar-darklink colors are invalid at computed-value time and the element inherits its color.var()substitutes it. That is why it survived review.rgba($white, .55)form in v6: Use token Sass map to customize CSS variables instead of Sass variables #41983 and kept the decimal. The other 28color-mix()calls in the stylesheet already use percentages..55→55%,.75→75%,.25→25%,.1→10%.Checked in Chrome 148: with
.55the probe inherits its parent'srgb(255, 0, 0), with55%it computesoklch(0.999994 0.0000497986 none / 0.55).No dist in the diff.
Found while working on julien-deramond/bootstrap-tokens#14.
🤖 Generated with Claude Code