| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
PatternFly-React preview: https://patternfly-react-pr-2634.surge.sh |
Sorry, something went wrong.
There was a problem hiding this comment.
Hi Jessie, your changes are looking good! There's a small thing that axe doesn't seem to like about the id of the first clipboard copy example, since it matches the title ... Looks like a small fix so I was going to try to find it myself and add it to your PR, but I looked around all three patternfly repos and I'm not sure where the ID for the first example is declared. Do you have any idea where this might be happening?
Sorry, something went wrong.
|
Hey Jenny, thanks for taking a look! So from what I can tell, I believe in org we have AutoLinkHeaders that set the id. So in the mdxPF4Template.js and index.js there is an AutoLinkHeader that generates the size, className, id, content, etc. It does this from the AutoLinkHeader.js file. For the other PR I had on unique org ids, I had to pass a suffix to the AutoLinkHeader to add that to the id and differentiate them. With this issue, it looked like it was with what was being pulled from patternfly-react so I changed the aria-controls in ClipboardCopyToggle.tsx. That's been my thinking up until this point anyway. :) |
Sorry, something went wrong.
|
@jessiehuff That makes sense. Thank you for clarifying! Just out of curiosity (and for future reference), is aria-controls somehow modifying the value of the id there? |
Sorry, something went wrong.
|
@jenny-s51 aria-controls provide a relation between a parent element and a child element (the toggle's button in this case). The reason I think it needed to be changed here is because otherwise we get the issue: "ARIA attributes must conform to valid values" basically pointing out that we need to pass the correct information to screen readers. This article seems to give a good summary of aria-controls. :) |
Sorry, something went wrong.
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Fix accessibility issues in Accordion, ClipboardCopy, and DataList
Fixes patternfly/patternfly-org#1311
Fixes patternfly/patternfly-org#1310
Fixes patternfly/patternfly-org#1305