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? |
jackdomleo7
left a comment
There was a problem hiding this comment.
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 |
jackdomleo7
left a comment
There was a problem hiding this comment.
Nice one @Matrix278! Thank you.
Types of changes
Screenshot(s)
Description
Resolves: #104
Checklist:
xif you have considered this but thought there was nothing to add or modify).contributorssection inpackage.json(still put anxif you have considered this but decided not to add yourself).test/index.htmlto thetest/index.htmlin themasterbranch).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?