Reuse Spinner styles for InlineSpinner

Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
Robin Townsend 2021-05-16 08:00:54 -04:00
parent 74cc00b319
commit 555b2e3266
2 changed files with 1 additions and 14 deletions

View File

@ -23,19 +23,6 @@ limitations under the License.
vertical-align: -3px;
}
@keyframes spin {
from {
transform: rotateZ(0deg);
}
to {
transform: rotateZ(360deg);
}
}
.mx_InlineSpinner_icon {
display: inline-block;
background-color: $primary-fg-color;
mask: url('$(res)/img/spinner.svg');
mask-size: contain;
animation: 1.1s steps(12, end) infinite spin;
}

View File

@ -40,7 +40,7 @@ export default class InlineSpinner extends React.Component {
} else {
icon = (
<div
className="mx_InlineSpinner_icon"
className="mx_InlineSpinner_icon mx_Spinner_icon"
style={{width: w, height: h}}
aria-label={_t("Loading...")}
></div>