-
Notifications
You must be signed in to change notification settings - Fork 146
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
Plugins: FAQ: Restore anchors to FAQ items #315
base: trunk
Are you sure you want to change the base?
Conversation
This is working for me? |
The URL update is working if you click the I also see an issue with some questions working while others don't, and I wonder if it has to do with punctuation (apostrophes in particular)— "Q: Can I customize the booking calendar colors?" works, but "Q: The booking calendar form doesn’t appear. Solution?" does not. Removing the action from the button will likely break the keyboard functionality here. Also, it looks like this also needs focus states. |
f5abe0a
to
99515ac
Compare
Ahhhh, yeah I've never clicked the button.. always the
I've tested it, and keyboard appears to still work fine. The formaction is missing the leading The FAQ items also have zero focus state for keyboard navigation, so it's impossible to tell which element the keyboard is focused on right now.
Yep, that's caused by That causes the following line to never find an element, since wordpress.org/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins-2024/js/section-faq.js Line 41 in 99515ac
This includes a JS function for RFC3986 encoding, which would encode those characters, but that also doesn't encode 13a3418 should resolve that.. even if it looks a bit complicated.. |
See: #315 Props: dd32, ryelle git-svn-id: https://meta.svn.wordpress.org/sites/trunk@13750 74240141-8908-4e6f-9713-ba540dce6ec7
The FAQ anchors have ceased to update the URI, this PR attempts to add it back.
TODO: The
scrollTo
functionality doesn't work, it triggers, but it's like some other JS from something else forces a scroll to the top of the page instantly.@StevenDufresne Do you wish to take this over?