Keep button text visible while in loading state #23
Closed
fredrik-sogaard
started this conversation in
Feature requests
Replies: 1 comment
-
|
Making the label visible will cause the button to shift, so I'd prefer that not to be the default behavior. However, it wasn't possible to do this with CSS so I added the /* Loading button with visible label */
quiet-button {
&::part(button),
&::part(label) {
visibility: visible;
}
&::part(spinner) {
position: static;
}
}
Example: https://codepen.io/claviska/pen/zxraNyL?editors=0100 This is available in 1.4.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice if the button text would be visible while in loading state and place the spinner at the start. That way we can change the text from for example "Submit" to "Submitting..." on the button itself, instead of just showing the spinner.
Beta Was this translation helpful? Give feedback.
All reactions