-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ui] Support round icon buttons. Enable forced square aspect ratio fo…
…r icons (#13501) - Add a `square` prop to Icons to force square aspect ratio. This was important here to ensure consistent padding on round icon buttons regardless of icon width. - Move some one-off paddings from Button to theme defaults. - `roundSingleChar` and `roundIcon` are now theme button kinds with specific paddings. They are set as the default kind when Button detects either scenario from button props. <img width="725" alt="Screenshot 2024-11-18 at 5 51 41 PM" src="https://github.com/user-attachments/assets/0d9f37f6-f06b-4484-b131-102dc6cef297"> GitOrigin-RevId: 72fe0fb76d6ca76ad01ef09f9506ba8331eb17d4
- Loading branch information
1 parent
57b972d
commit fafff8e
Showing
5 changed files
with
117 additions
and
68 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
Oops, something went wrong.