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

fix(Menu): correctly handle disabled item#694

Merged
miroslavstastny merged 9 commits intomasterfrom
fix/menu-item-disabled
Jan 15, 2019
Merged

fix(Menu): correctly handle disabled item#694
miroslavstastny merged 9 commits intomasterfrom
fix/menu-item-disabled

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.


### 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