Block Bindings: UI components that show connected values should be readonly and not disabled #58673
Labels
[Feature] Block bindings
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Type] Bug
An existing feature does not function as intended
Description
I followed instructions from WordPress/wordpress-develop#5888 to test the connected blocks in the editor UI. I see that, so far, components in the editor UI that show the connected values are disabled by the means of a
disabled
HTML attribute.For example, when an image
alt
attribute is connected to a post meta source, thealternative text
textarea in the Settings panel is disabled:There's a few problem with this:
Connected to a custom field
as it doesn't make sense to provide a description for a control that is disabled in the first place. In my testing, Safari + VoiceOver don't make the description available to users.Rather, the control should be
readonly
.readonly
attribute better communicates the attribute cannot be edited but it's still functional.readonly
controls.Screenshot with
readonly
instead ofdisabled
:In my testing I've gone only through the image alt attribute so far but this applies to any other control of the editor that shows connected values.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: