You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If Spinner is used in a flex row with other components, and align-items: center is applied, the Spinner is not quite vertically centered.
The root of the issue lies in the Polaris spinner component, which is wrapped in a span. This makes it an inline element and introduces additional bottom spacing reserved for descenders. As a result, even though the flex container wrapping all buttons is set to center alignment, it doesn't properly align the spinner due to the extra whitespace inherent to the spinner element.
Summary
See this comment (https://github.com/Shopify/web/pull/122620#discussion_r1552204022).
If
Spinner
is used in a flex row with other components, andalign-items: center
is applied, theSpinner
is not quite vertically centered.Expected behavior
The
Spinner
is vertically aligned as expected.Actual behavior
Steps to reproduce
Link to sandbox
Are you using React components?
Yes
Polaris version number
"12.26.0"
Browser
Latest Chrome
Device
Macbook pro
The text was updated successfully, but these errors were encountered: