patternfly
patternfly copied to clipboard
Bug - Tree view: IDs are reused between examples
Describe the problem Follow up for https://github.com/patternfly/patternfly/pull/4991
The "checkbox" and "selectable" examples are currently sharing IDs between them due to how IDs are generated, causing some items in the "selectable" example to be labelled by items from the "checkbox" example.
The solution could involve creating a way to generate more unique IDs.
How do you reproduce the problem?
Tree view preview build from the PR linked above. Navigate with a screen reader in the "With selectable, expandable nodes" example, and notice how some items have incorrect announces (you can also check the DOM to see that some items' aria-labelledby is pulling in the Id from the checkbox example).
Expected behavior Elements have unique IDs
Is this issue blocking you? N/A
Screenshots N/A
What is your environment? N/A
What is your product and what release date are you targeting? N/A
Any other information? N/A