-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Theme: Add new caution color ramp #72782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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. |
|
@jameskoster Curious if you have any thoughts on the best way to document the distinction between "caution" and "warning" ? |
|
Size Change: +89 B (0%) Total Size: 2.38 MB
ℹ️ View Unchanged
|
|
Good question. Caution could be classified as "Heads-up, minor issue, or 'proceed carefully'" while Warning is for more serious or time-sensitive issues, that aren't full errors. Does that help? |
It does, thanks! How do you feel about how I approached this in 9ad7fc7, also incorporating documentation for the color token scheme more generally. (Acknowledging I used some AI assistance in drafting this, so it's worth a bit of extra scrutiny for anything I might have missed in my manual review) |
|
Flaky tests detected in a9f45e6. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18974350383
|
| | --------------------- | ------------------------------------- | | ||
| | `active` | Hovered, pressed, or selected state. | | ||
| | `disabled` | Non-interactive or unavailable state. | | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does focus count as interaction? Some of our components can still be focused in disabled state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
focuscount as interaction? Some of our components can still be focused in disabled state.
Ideating with my AI friend, how does "inoperable" sound in place of "interactive"? As far as conveying the idea that the element likely won't receive clicks or keypresses, but could be focused.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me :D
|
@jameskoster I made some revisions to the descriptions based on your feedback in e19f37f |
jameskoster
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledging that we might want to finesse the seed colors later, this seems good to merge for now!
Co-Authored-By: James Koster <846565+jameskoster@users.noreply.github.com>
Co-Authored-By: James Koster <846565+jameskoster@users.noreply.github.com>
e19f37f to
a9f45e6
Compare
What?
Expands on the work started in #72305 to create a new range of color tokens for "caution" states.
Why?
These are intended to be used in themed components to convey a distinct severity level within warning states, similar to what's seen in some other design systems (e.g. IBM Carbon).
How?
Testing Instructions
Verify in Storybook:
npm run storybook:devScreenshots or screencast