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

Dropdown #40

Merged
merged 18 commits into from
Jun 14, 2018
Merged

Dropdown #40

merged 18 commits into from
Jun 14, 2018

Conversation

micgro42
Copy link
Contributor

@micgro42 micgro42 commented Jun 12, 2018

ToDo:

  • Show dropdowns only if at least one item is shown
  • Show items as vertical list with icon and label

Optional:

  • set dropdown active if an item is active?

This gives much more control to the individual menu item and is needed for dropdowns.
MenuItems may now get a render method instead of a dom method. Also,
they may have an update() method to do custom updating.
They will have to be reworked when the markup is somewhat stable
This always runs the is-active check on update
A dropdown is now active if any of its items are active
more consistent markup and thus simpler styling
The will be many more marks than just these 3, so grouping them into a dropdown makes sense
@micgro42 micgro42 requested a review from splitbrain June 13, 2018 13:48
@micgro42 micgro42 changed the title WIP: Dropdown Dropdown Jun 14, 2018
}
}

exports.Dropdown = Dropdown;
Copy link
Member

Choose a reason for hiding this comment

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

JSDoc is a thing, we should use it ;-)

@splitbrain
Copy link
Member

Looks good, I'd like to see more doc blocks for the JavaScript though.

@micgro42 micgro42 merged commit 61be18c into master Jun 14, 2018
@micgro42 micgro42 deleted the Dropdown branch June 14, 2018 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants