Skip to content

use <div role="note"> instead of <blockquote> for admonitions#3027

Open
orangecms wants to merge 1 commit intorust-lang:masterfrom
orangecms:admonition-semantics
Open

use <div role="note"> instead of <blockquote> for admonitions#3027
orangecms wants to merge 1 commit intorust-lang:masterfrom
orangecms:admonition-semantics

Conversation

@orangecms
Copy link

@orangecms orangecms commented Feb 8, 2026

Also, render the 'title' in a <span> instead of a <p>. This is semantically closer to what assistive tooling supports. For reference, see also:

see #3026

Also, render the 'title' in a <span> instead of a <p>.
This is semantically closer to what assistive tooling supports.
For reference, see also:
- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/note_role
- https://www.w3.org/TR/WCAG21/#name-role-value (even has a note)

Signed-off-by: Daniel Maslowski <info@orangecms.org>
@orangecms
Copy link
Author

I also filed this against the underlying parser:
pulldown-cmark/pulldown-cmark#1069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: waiting on a review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants