Repository navigation
Docs: explain how to fill the ... placeholders for accessible names - #43078
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
julien-deramond
marked this pull request as ready for review
October 14, 2026 16:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#42708 replaced the
aria-label="..."of the checks and radios "Without labels" example with "Checkbox without label" and "Radio button without label". The...is on purpose. It's how the docs mark a value that depends on your project, and copied markup with...shows that something still has to be filled in. A name like "Checkbox without label" tends to ship as is, and it isn't a good name either: screen readers already announce the role, and it doesn't say what the control does.That PR did point at a real gap. The sentence above the example asked for an accessible name but didn't say how to choose it. It now says the name should describe what the control does, gives
aria-label="Select all rows"as an example, and says it replaces the...placeholder. The pagination page already does this with "Search results pages".The images page gets the same kind of sentence for
alt: describe the image, or use an emptyalt=""when it's only decorative. The<picture>example there usesalt="...", and so does the code of every image example, since theExampleshortcode turns the placeholder SVGs into<img src="..." alt="...">. The page never said what goes there.The other
...placeholders stay as they are. Pagination already explains itsaria-label, the icon link page asks for "an appropriatearia-label", and the modal and offcanvasaria-labelledby="..."already say they reference the title. In the toasts and placeholders examples, the image isn't what the example is about.The v6 counterpart is #43079.
🤖 Generated with Claude Code