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
converted initSkipLink to Stimulus and wrote tests for it #9818
Conversation
Manage this branch in SquashTest this branch here: https://lovelyfin00skip-link-stimulus-n63t7.squash.io |
Looks like the CI has flagged that your HTML is not formatted - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One additional small formatting issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Lovelyfin00 this works great!
I have a few changes suggested, which I have made and will push up to your branch, however please read through in detail to understand the changes.
I will check the CI runs and merge in.
I have also added a commit on this branch which just renames the files before adding your changes - I can explain this on our call but please remind me to explain why we do this.
Main content | ||
</main> | ||
<button id="other-content">other</button> | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge problem but we do not need to indent this test HTML so much, also the main/main can be in one line.
This just makes it more readable.
This is not easily compatible with code that initialises properties outside of the constructor (used in Stimulus)
2e19226
to
cd96de2
Compare
- Use declare for existing Stimulus controllers - First enabled in wagtail#9761 & then disabled in wagtail#9818
Fixes #9810
Fix Summary
After the Skip button has been clicked