-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dropdown-menu and button to allow text buttons (#26425)
* Add text prop for button and dropdownmenu Adds a new text property for button and dropdownmenu, if specified it will show the text in the button field. You could specify icon={ null } to have a text-only button. Used to support social links size menu in #25921 * Update text rendering for both icon & text - Show text if specified regardless of icon, allows for icon & text - Switch text rendering, don't need a span tag, just use a fragment
- Loading branch information
Showing
2 changed files
with
4 additions
and
0 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