Skip to content

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Aug 11, 2025

Purpose

Ensure decorative images in the BlockNote editor have an empty alt attribute
by default to meet RGAA 1.2 accessibility requirements and improve
screenreader experience.

issue 1073

Proposal

  • Set alt="" and relevant accessibility attributes for decorative images
  • Apply changes on initial render and on editor content change

@Ovgodd Ovgodd self-assigned this Aug 11, 2025
@Ovgodd Ovgodd force-pushed the fix/1073-alt-default-images branch from 4ec3212 to 9f90caa Compare August 11, 2025 10:36
@Ovgodd Ovgodd requested a review from AntoLC August 11, 2025 10:37
@Ovgodd Ovgodd marked this pull request as ready for review August 11, 2025 10:37
@Ovgodd Ovgodd force-pushed the fix/1073-alt-default-images branch from 9f90caa to db361ad Compare August 11, 2025 11:59
@AntoLC AntoLC linked an issue Aug 12, 2025 that may be closed by this pull request
Copy link
Collaborator

@AntoLC AntoLC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a proposal more Blocknote way, if you are find with this way, let's go.

Copy link
Collaborator Author

@Ovgodd Ovgodd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice ! I like it

@Ovgodd Ovgodd force-pushed the fix/1073-alt-default-images branch from c37591f to 1b808d9 Compare August 14, 2025 12:34
ensure decorative images have empty alt to comply with RGAA 1.2 accessibility

Signed-off-by: Cyril <c.gromoff@gmail.com>
@Ovgodd Ovgodd force-pushed the fix/1073-alt-default-images branch from 1b808d9 to d0c9de9 Compare August 14, 2025 12:39
@Ovgodd Ovgodd merged commit d0c9de9 into main Aug 14, 2025
20 of 21 checks passed
@Ovgodd Ovgodd deleted the fix/1073-alt-default-images branch August 14, 2025 12:58
@AntoLC AntoLC changed the title ✨(frontend) set empty alt for decorative images in blocknote editor ♿(frontend) improve accessibility for decorative images in editor Sep 4, 2025
@AntoLC AntoLC mentioned this pull request Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't set an alt attribute by default to images

2 participants