Skip to content

Commit

Permalink
fix: remove margin on sqAppIcon spinner
Browse files Browse the repository at this point in the history
It pushed icons sideways
  • Loading branch information
acezard committed Mar 23, 2023
1 parent 05f4d17 commit 6d74024
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions react/SquareAppIcon/__snapshots__/SquareAppIcon.spec.js.snap
Expand Up @@ -9,7 +9,7 @@ exports[`SquareAppIcon component should render an app correctly with the app nam
class="MuiBadge-root"
>
<div
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1"
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1 u-m-0"
>
<svg
aria-busy="true"
Expand Down Expand Up @@ -73,7 +73,7 @@ exports[`SquareAppIcon component should render an app correctly with the given n
class="MuiBadge-root"
>
<div
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1"
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1 u-m-0"
>
<svg
aria-busy="true"
Expand Down Expand Up @@ -137,7 +137,7 @@ exports[`SquareAppIcon component should render an app with the app slug if no na
class="MuiBadge-root"
>
<div
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1"
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1 u-m-0"
>
<svg
aria-busy="true"
Expand Down Expand Up @@ -431,7 +431,7 @@ exports[`SquareAppIcon component should render correctly an app with custom cont
class="MuiBadge-root"
>
<div
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1"
class="styles__c-spinner___1snK7 styles__SquareAppIcon-spinner___o0LO1 u-m-0"
>
<svg
aria-busy="true"
Expand Down
2 changes: 1 addition & 1 deletion react/SquareAppIcon/index.jsx
Expand Up @@ -83,7 +83,7 @@ export const SquareAppIcon = ({
invisible={variant !== 'shortcut'}
>
{['default', 'loading'].includes(variant) && (
<Spinner className={styles['SquareAppIcon-spinner']} />
<Spinner className={cx(styles['SquareAppIcon-spinner'], 'u-m-0')} />
)}
<Badge
className={cx(
Expand Down

0 comments on commit 6d74024

Please sign in to comment.