Make `iconSpacing` control `ButtonSpinner` margin
See original GitHub issueDescription
Currently iconSpacing
property of Button
component only controls the spacing between leftIcon
/ rightIcon
and button text. It doesn’t control the spacing between ButtonSpinner
and button text when isLoading={true}
.
From my point of view, it should control it. Otherwise, there is a design shift when isLoading
goes from false
to true
.
Problem Statement/Justification
Currently iconSpacing
property of Button
component only controls the spacing between leftIcon
/ rightIcon
and button text. It doesn’t control the spacing between ButtonSpinner
and button text when isLoading={true}
.
Proposed Solution or API
Controling ButtonSpinner margin via iconSpacing
property.
Alternatives
No response
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
How to change the spacing between desktop icons for ...
Then, please navigate to HKEY_CURRENT_USER - Control Panel - Desktop - WindowMetrics, then double-click on each of the IconSpacing (horizontal icon spacing) and ......
Read more >Button - Chakra UI
Button component is used to trigger an action or event, such as submitting a form, opening a Dialog, canceling an action, or performing...
Read more >How to get space between icon and label on button?
You can use the following custom CSS to add some margin to the right of the icon: .lotusBtn img { margin-right: 10px; }....
Read more >How to modify Icon Spacing & Icon Size (Windows 10)
Download ZIP compressed " icon spacing.reg" file ▻ https://drive.google.com/open?id=1z3fi4uoNe7CEr2VIX6kRJ5aIswSMlqggDownload "Desktop Icons ...
Read more >How to change icon spacing in Windows 10 - YouTube
Want to change the spacing of the icons on your Windows 10 desktop? I'll show you the range and how to do it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
When looking into the button api I think there is another inconsistency in the button api. The icon is placed using
iconLeft
andiconRight
while the spinner is placed usingspinnerPlacement
. But I guess thats a different discussion.@sohamsshah Here is a codesandbox: https://codesandbox.io/s/homepage-forked-6pmis?file=/src/App.tsx
This is the UI of “Search button” by default:
When you click, this is the UI:
You see that the spacing changes.