Spinner image doesn't render well at small
size
#153
Labels
pattern library
concerning the build, structure, styling or components for the pattern library
small
size
#153
The
Spinner
component and underlyingspinner
pattern here are adapted from spinner use on the LMS project. In that project, the spinner is always rendered at about2em
square, i.e., large-ish.We also want to replace uses of the old, CSS-styled spinner in the client with the new
Spinner
component here. However, in many cases in the client, the spinner is rendered smaller,1em
square. This works with the visual design of the client spinner, but does not work so well with the image used by the newSpinner
component.The
Spinner
component here uses the "tail spin" loader SVG image, which, at time of writing is the second from the left in the bottom row of these examples. That renders fine at larger sizes, but the line weight is too thin for it to work at the dimensions that the client uses.1em
in the client averages about13px
. It becomes nearly invisible at that size.We have a couple of options:
size="small"
or as a manually-setvariant
or somesuchIt's a pity, because I think the visual styling of the current (CSS-based) client spinner is nice, but I lack the skills to be able to animated-SVG-ize such a thing.
The text was updated successfully, but these errors were encountered: