-
Notifications
You must be signed in to change notification settings - Fork 7
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
remove usa-skipnav from touchpoints-skipnav #597
Conversation
Co-authored-by: elisa lee <[email protected]>
assets/js/touchpoints.js
Outdated
@@ -406,7 +406,7 @@ function FBAform(d, N) { | |||
}, | |||
loadFeebackSkipLink: function () { | |||
this.skipLink = document.createElement("a"); | |||
this.skipLink.setAttribute("class", "usa-skipnav touchpoints-skipnav"); |
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.
I'm wondering if instead of removing it from this file... in the sr-touchpoints.js
file we remove the usa-skipnav
class
const feedbackSkipLink = document.querySelector(".touchpoints-skipnav");
feedbackSkipLink.classList.remove("usa-skipnav");
so it is easier to maintain in the future? 🤔
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.
I think it makes sense. The comment on top of the file says it was just copied from a different place. It would be possible that it just gets deleted here by accident.
/**
* Script taken from our touchpoints configuration here: https://touchpoints.app.cloud.gov/touchpoints/2a6e9509.js
* NOTE: When updating script ensure sr-touchpoints.js works as intended
*/
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.
LGTM! Thank you!!!
Related Issue or Background Info
Changes Proposed
Additional Information
Testing