-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable alpha on Block Inspector Color ToolsPanel (#37731)
* Initial commit: passing enableAlpha=true to the underlying ColorPicker component from the color tools panel. * Show a warning in the color panel where either the text or background color has transparency. Adding tests. Updating README.md to reflect the reality that colord does not check the contrast of colors with alpha transparency in our implementation. * enableContrastChecking if enableAlpha is true only show the transparency warning where the text color alpha is < 1 ensure the readability/contrast warning takes precedence over the transparency warning * Rename enable alpha prop to remove the experimental prefix
- Loading branch information
Showing
5 changed files
with
124 additions
and
25 deletions.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
packages/block-editor/src/components/contrast-checker/README.md
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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