Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(Menu): correctly handle disabled item #694

Merged
merged 9 commits into from
Jan 15, 2019

Conversation

miroslavstastny
Copy link
Member

@miroslavstastny miroslavstastny commented Jan 8, 2019

Adds correct styles and fixes behaviors for disabled menu item. Fixes #186.

  • changelog
  • discuss behavior tests in MenuItem-test.tsx with @kolaps33 / @jurokapsiar - why is behavior-test not enough?
    • behavior-test is enough, accessibility tests removed from MenuItem-test.tsx, accessibility integration smoke test added there.
  • improve tests for IS_FOCUSABLE_ATTRIBUTE (check it is set only if not disabled)
    • also changed how aria-disabled is handled - instead of adding aria-disabled=false the attribute is omitted.

@@ -35,7 +36,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Add `MenuDivider` component and `kind` prop to the `items` inside of the `Menu` for creating different components @mnajdova ([#682](https://github.com/stardust-ui/react/pull/682))

### Fixes
- Fix unicode arrow characters to be RTL aware ([#690](https://github.com/stardust-ui/react/pull/690))
- Fix unicode arrow characters to be RTL aware @mnajdova ([#690](https://github.com/stardust-ui/react/pull/690))
Copy link
Member

Choose a reason for hiding this comment

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

👍

@miroslavstastny miroslavstastny merged commit 49b5447 into master Jan 15, 2019
@miroslavstastny miroslavstastny deleted the fix/menu-item-disabled branch January 15, 2019 17:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add MenuItem disabled prop
6 participants