-
Notifications
You must be signed in to change notification settings - Fork 31
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
Anchor tags should not be used as buttons #110
Anchor tags should not be used as buttons #110
Conversation
Hi @Matrix278, thank you for this PR! That's an interesting thing you have found. Are you saying the warning W0010 overrides the error if both apply? 🤔 |
Hi, yes it seems like it overrides it and showing the new warning there now, where actually should be error. I guess some additional css should be added? |
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.
Thank you for this PR. Really good work. Just a few minor changes then we'd be good to go 🙂
That's interesting. I don't think any additional CSS is needed. After your PR is merged, I'll do some investigation before I publish a new version because I think I have an idea what it may be. FYI - You can ignore the linting check failure, there is an open issue (#87) where I'm struggling to resolve this. |
Sure, thanks for clarifying 👍 |
Hi @Matrix278, we have recently merged #111. Would you be able to update your branch with master and where you have added your new feature as W0010, could you change it to W0011 as W0010 now already exists due to the recent merge 🙂 |
…or-tags-should-not-be-used-as-buttons
@jackdomleo7 ready for review again, fixed all your suggestions and conflicts, should be fine now |
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.
Nice one @Matrix278! Thank you.
Types of changes
Screenshot(s)
Description
Resolves: #104
Checklist:
x
if you have considered this but thought there was nothing to add or modify).contributors
section inpackage.json
(still put anx
if you have considered this but decided not to add yourself).test/index.html
to thetest/index.html
in themaster
branch).Help
Could not test in Safari because I do not have access to an Apple device
There is one issue with an existing feature
E0009
, where the invalid HTML elements are nested inside a button. As this new feature is checking for emptyhref="#"
, it will trigger a new message here as well. How I could change this? Does here should be added check if is not a child of a button or it could be done another way? Need some help with that, what I could do about this?