momentum-design / momentum-ui

Momentum UI is a collection of UI libraries for implementing Momentum Design into web applications and websites.
https://momentum.design
MIT License
199 stars 204 forks source link

[Menu] Menu item disabled state #583

Closed therobertmaftei closed 4 years ago

therobertmaftei commented 4 years ago

Issue Type

Feature Request

Component or Pattern Affected

Menu item

Expected Behavior

Since menu-item is actually the list-item, it should have support for disabled state, an input that's attached to the list-item and provide according style.

Screen Shot 2020-04-03 at 7 26 57 PM

Current Behavior

Menu item does not support a disabled input.

Screen Shot 2020-04-03 at 7 27 47 PM

Possible Solution

disabled property should be added as input to MenuItemComponent and set to false by default.

Steps to Reproduce (for bugs)

  1. Create a md-menu.
  2. Add menu items.
  3. Try to disable any of the menu items.

Context

Trying to dynamically disable the menu's items was not possible without adding local changes.

Your Environment

bfbiggs commented 4 years ago

Closing as angular library has been forked and removed.