Skip to content

docs: mention useId for accessible ids#3392

Closed
ghost wants to merge 1 commit into
mainfrom
unknown repository
Closed

docs: mention useId for accessible ids#3392
ghost wants to merge 1 commit into
mainfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented May 10, 2026

Description of Problem

The accessibility guide shows aria-labelledby with hard-coded IDs. That can be confusing when the pattern is used in reusable components, because id values are global to the document.

Proposed Solution

Add a short tip recommending useId() for stable, unique IDs in reusable components.

Additional Information

Fixes #1510

Testing

  • npx -y pnpm@10.33.0 build

@netlify
Copy link
Copy Markdown

netlify Bot commented May 10, 2026

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit 0d286fa
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6a003aa200816d00082d8daf
😎 Deploy Preview https://deploy-preview-3392--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ghost ghost closed this by deleting the head repository May 10, 2026
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aria-labelledby example with id and components

1 participant