-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix disabled links refresh page #132
Conversation
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.
Thanks for the contribution @hoektoe. Small suggestion to remove some extra whitespace otherwise we're good 👍🏻
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.
Thanks for the contribution! Great idea, and it works well. ✅
As Chris mentioned, a little whitespace cleanup, but otherwise looks great.
Co-authored-by: Chris Berthe <chris.berthe@shopify.com>
Co-authored-by: Chris Berthe <chris.berthe@shopify.com>
Co-authored-by: Chris Berthe <chris.berthe@shopify.com>
Thanks, @chrisberthe , applied the suggestions. Didn't know could leave a code suggestion like that and have it applied/accepted like that. Hope all is well? |
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.
Yeah, nifty little GitHub feature. Something else that's pretty cool is that you can look at the "Files changed" tab and batch the suggestions together into a single commit instead of committing each suggestion separately.
Code looks good btw! We'll just wait on @tyleralsbury to review the latest. Thanks for your contribution :)
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.
Looks good - tested and code ✅
Why are these changes introduced?
Fixes #8.
Affected components are:
What approach did you take?
Components with anchor links that could be empty, check for blank URL and remove the Href from the anchor tag. This approach still shows the end-user disabled cursor as per CSS styling for aria-disabled
Hovering over anchors without Href shows end-user disabled cursor and does nothing when clicked
Other considerations
Demo links
Checklist