BorderControl: Sync indicator color when only border width is set#75516
BorderControl: Sync indicator color when only border width is set#75516Shekhar0109 wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
9c980a2 to
9b384dc
Compare
9b384dc to
2b0b26a
Compare
Closes #75468
What?
Fixes a UI desynchronization issue where setting a border width without explicitly selecting a border color renders a visible border (using the computed text color), but the Border color indicator in the sidebar does not reflect this fallback.
Why?
When a border width is applied without selecting a color:
currentColor).Users may think the border is using a different color than what is actually rendered.
How?
BorderControlDropdownindicator logic to reflect the effective fallback color when a width is set but no explicit color is selected.var(--wp--preset--color--contrast)) to match the computed text color.Testing Instructions
Expected Result