-
Notifications
You must be signed in to change notification settings - Fork 10
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
bug/issue 350 Fix website shelf collapse/expand event #351
Conversation
requires #353 to work properly |
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.
Both issues look good to me!
www/components/shelf/shelf.js
Outdated
@@ -128,7 +128,7 @@ class Shelf extends LitElement { | |||
|
|||
return html` | |||
<li class="list-wrap"> | |||
<a href="${item.link}" @click="${this.handleClick}"><h2 id="${id}">${item.label} <span>${chevron}</span></h2></a> | |||
<a id="${id}" href="${item.link}" @click="${this.handleClick}"><h2>${item.label}</h2><span>${chevron}</span></a> |
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.
minor indentation change.
also, I think a block element (<h2>
) technically isn't allowed inside an inline element (<a>
). (I know not introduced by this PR but just commenting on it.)
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.
Well we might as well fix that while we're at it. A span would be valid.
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.
Related Issue
Resolves #350 / #352
Summary of Changes
Adds
pointer-events:none
for elements within the anchor element.