-
Notifications
You must be signed in to change notification settings - Fork 384
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
Make skip link for Full Site Editing themes AMP compatible #6115
Comments
I've added a workaround to omit the script in #6115 as it was needed to make the tests pass. This issue remains needed to actually implement the functionality. As for how to implement support, I think |
We can use PHP but it needs to be with PHP DOM since while adding skip link we need to find the ID of the target element. |
Tested at 2.2.x and QA Passed |
Bug Description
Gutenberg 10.5 adds a skip link that points to the
main
element when a FSE theme is active. This is accomplished with a bit of CSS and JS (see WordPress/gutenberg#30336) but that solution isn't AMP compatible. This now causes a validation error to be raised for the invalid script:Expected Behaviour
A validation error should not be raised for the skip link functionality when using a FSE theme.
Steps to reproduce
Screenshots
Additional context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: