Repository navigation
Conversation
🤖 PR meta 🤖🏷️ LabelsThis pull request needs exactly one label indicating its type, and has 0.
Read more about Type labels in Gutenberg. If you cannot add labels yourself, a reviewer can do it for you. 📦 Bundle sizeSize Change: +88 B (0%) Total Size: 9.06 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Regression: updating a specific option will only change its value and will not corrupt others in
|
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.
Superseded by #85449, which includes all of these final-color warnings alongside automatic focus-ring correction. See #84087.
What?
Report focus-ring and strong brand fill colors below 3:1 contrast against neutral and brand surfaces through
ThemeProvider.onColorWarnings.Why?
A readable foreground on a solid highlight does not guarantee that the highlight itself is distinguishable from its surroundings. This draft explores reporting failures while preserving the generated colors.
How?
Check the final generated ring, resting fill, and active fill against all three neutral surfaces and the public brand surface after seed adjustments. Existing text checks keep their 4.5:1 target.
Testing Instructions
#3858e9and background#fcfcfcshould report no warnings.#ffff00. Expect 3:1 contrast warnings for the solid fills while their text remains readable. The generated colors should stay unchanged.#608010and background to#4f386e. Expect a warning for the final active fill#6e8f26against the neutral strong surface#563b79, at approximately 2.45:1.Verification
The production build, theme typecheck, JavaScript lint, published-dependency audit, and all 184 theme tests passed, including the browser warning callback checks. Regression coverage checks the unrounded 3:1 threshold and final colors after seed adjustment.
Use of AI Tools
Codex was used to investigate the contrast checks, implement the warnings and regression coverage, run verification, and draft this description.