Image block: linked image do not have a pressed button in the block toolbar #56078
Labels
[Block] Image
Affects the Image Block
[Block] Media & Text
Affects the Media & Text Block
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Block editor
/packages/block-editor
[Package] Components
/packages/components
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When some normal text in the editor is linked, the 'Link' button in the block toolbar communicates there is a link both visually and semantically. Screenshot:
Instead, when an image is linked, the 'Link' button doesn't communicate the 'linked' stage. Screenshot:
the button misses the 'is-pressed' CSS class and the
aria-pressed="true"
attribute.Besides that, labelling, functionality and UI to unlink/edit link are completely different for text and images. Ideally, the UIs should be similar but that's not the scope of this issue.
Step-by-step reproduction instructions
aria-pressed="true"
attribute)aria-pressed="true"
attribute)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: