-
Notifications
You must be signed in to change notification settings - Fork 106
fix(accordion): removing auto focus on expanded in the header #2458
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
Conversation
🦋 Changeset detectedLatest commit: 89cc48d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for patternfly-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
Actually not sure about this one, it seems like the focus should be on the header when it is expanded but I'm not sure if we want it to ignore focus when it's expanded on load or if we just want to update the docs for now and decide if we want to fix in a future update. Thoughts @markcaron @zeroedin @bennypowers ? |
On page load focus / From my understanding when an accordion header is Even still when the url#hash is used I don't think you'd set focus rather with the correct structure of the HTML page (given no iframes etc) the browser should handle that for us. @nikkimk does this sound correct / am I explaining that correctly? Here is a gist demonstrating this: https://gist.github.com/zeroedin/a136884404105535111d09f2a0fc5c27 Run that in a browser ie something like (http://127.0.0.1:5500/index.html#expanded) given the url#hash to |
|
I'm pretty sure the only change that needs to be made is the removal of |
14d1bf3 to
0b64048
Compare
What I did
Closes #2454
This is so that if you have an expanded accordion down the page it doesn't automatically scroll the user down to the accordion.
Testing Instructions