Skip to content
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

Merged
merged 4 commits into from
May 13, 2020

Conversation

hutchgrant
Copy link
Member

@hutchgrant hutchgrant commented May 7, 2020

Related Issue

Resolves #350 / #352

Summary of Changes

Adds pointer-events:none for elements within the anchor element.

@hutchgrant
Copy link
Member Author

requires #353 to work properly

@thescientist13 thescientist13 added the website Tasks related to the projects website / documentation label May 8, 2020
Copy link
Member

@thescientist13 thescientist13 left a 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!

@@ -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>
Copy link
Member

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.)

Copy link
Member Author

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.

Copy link
Member

@thescientist13 thescientist13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looking nice now 🎨 🆗
Screen Shot 2020-05-13 at 10 35 17 AM

@thescientist13 thescientist13 merged commit 43258ff into master May 13, 2020
@thescientist13 thescientist13 deleted the bug/issue-350-menu-collapse branch May 13, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
website Tasks related to the projects website / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu not collapsing/expanding when chevron is clicked multiple times
2 participants