feat: More obvious loading state when submitting a post (#35153)
This commit is contained in:
parent
fb5b8ae0a5
commit
644da36336
5 changed files with 120 additions and 28 deletions
|
|
@ -249,6 +249,21 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
&.loading {
|
||||
cursor: wait;
|
||||
|
||||
.button__label-wrapper {
|
||||
// Hide the label only visually, so that
|
||||
// it keeps its layout and accessibility
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.loading-indicator {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
|
|
@ -4645,14 +4660,20 @@ a.status-card {
|
|||
.icon-button .loading-indicator {
|
||||
position: static;
|
||||
transform: none;
|
||||
color: inherit;
|
||||
|
||||
.circular-progress {
|
||||
color: $primary-text-color;
|
||||
color: inherit;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
.button--compact .loading-indicator .circular-progress {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
|
||||
.icon-button .loading-indicator .circular-progress {
|
||||
color: lighten($ui-base-color, 26%);
|
||||
width: 12px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue