forked from reactstrap/reactstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Dropdown): add support for listbox or menu role (reactstrap#2077)
* feat(Dropdown, DropdownMenu, DropdownToggle): allow Dropdown to have listbox or menu role Dropdown Menu should allow for listbox or menu roles. Before this commit, the Dropdown could only have the menu role. After this commit, a user can add a menuRole property to the Dropdown component which will set a corresponding aria-haspopop property on the DropdownToggle, role property on the DropdownMenu, and role property on the Dropdown Items * feat(Dropdown, DropdownMenu, DropdownToggle): simplify code and fix bugs Address all code cleanlieness and backwards compatibility issues brought up in PR * feat(Dropdown, DropdownContext, DropdownMenu, DropdownItem): refactor and fix a typo Address all issues mentioned in PR review Co-authored-by: Kyle Tsang <6854874+kyletsang@users.noreply.github.com>
- Loading branch information
1 parent
ae4b5c5
commit fd9e988
Showing
6 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters