Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collapsible Block: Generated Anchor ID's are not always unique #355

Open
acketon opened this issue Aug 25, 2023 · 0 comments
Open

Collapsible Block: Generated Anchor ID's are not always unique #355

acketon opened this issue Aug 25, 2023 · 0 comments
Assignees
Labels
🔥 Product bug A bug which is not directly related to a custom child theme.

Comments

@acketon
Copy link
Member

acketon commented Aug 25, 2023

The current method of generating unique ID's is not robust enough and can lead to duplicate ID's. This is a known issue in Gutenberg and there are some improvements under consideration to allow non-duplicatable attributes. But until then, we still have an issue when a block is duplicated the "unique" ID generated from the clientId is also duplicated and then this becomes an accessibility issue and an issue for any JS on the frontend interacting with the block.

See:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 Product bug A bug which is not directly related to a custom child theme.
Projects
None yet
Development

No branches or pull requests

1 participant