feat: More obvious loading state when submitting a post (#35153)

This commit is contained in:
diondiondion 2025-06-24 16:08:48 +02:00 committed by GitHub
commit 644da36336
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 120 additions and 28 deletions

View file

@ -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;