-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Block Bindings: Add styles for attribute panel read only state #65103
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. |
@jasmussen Just changing the text color may be too subtle. Do you think there's anything else we should do to signal when the attributes panel is read only? |
Size Change: +14 B (0%) Total Size: 1.78 MB
ℹ️ View Unchanged
|
Flaky tests detected in a073f8e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10728847281
|
This is the difference I see. Admin: Editor:
Removing the interactivity and ellipsis helps. I agree just changing the color doesn't add much. Do we need it? If we need to disable the button, it should actually look disabled. And for disabled buttons, there are no contrast requirements, so in principle you could add something like Another option would be to apply the $gray-100 color as a background color on the item. |
I was thinking about that as well. Putting the |
I agree that changing the color doesn't add too much value. I would personally lean towards:
|
I don't know how viable it is to tap into the |
Ok, I'm hearing that... Am I getting that right? If so, we can close this PR and issue for now and see what the feedback is. |
What?
Currently, only admins can create and modify bindings using the attributes panel, whereas for editors the panel is in a read only state. We do not distinguish between these two modes, so this PR adds styling to distinguish when the attributes panel is non-interactive.
Why?
Addresses #65093
We want to signal when the attributes panel is read only so users don't perceive that as a bug.
How?
It sets the attribute name to gray in the panel.
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast
Before
After