mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Migrate all preferences buttons to axo button
This commit is contained in:
@@ -43,6 +43,26 @@ const SpinnerVariants = {
|
||||
bg: tw('stroke-fill-secondary'),
|
||||
fg: tw('stroke-border-selected'),
|
||||
},
|
||||
'axo-button-spinner-secondary': {
|
||||
bg: tw('stroke-none'),
|
||||
fg: tw('stroke-label-primary'),
|
||||
},
|
||||
'axo-button-spinner-on-color': {
|
||||
bg: tw('stroke-none'),
|
||||
fg: tw('stroke-label-primary-on-color'),
|
||||
},
|
||||
'axo-button-spinner-primary': {
|
||||
bg: tw('stroke-none'),
|
||||
fg: tw('stroke-color-label-primary'),
|
||||
},
|
||||
'axo-button-spinner-affirmative': {
|
||||
bg: tw('stroke-none'),
|
||||
fg: tw('stroke-color-label-affirmative'),
|
||||
},
|
||||
'axo-button-spinner-destructive': {
|
||||
bg: tw('stroke-none'),
|
||||
fg: tw('stroke-color-label-destructive'),
|
||||
},
|
||||
} as const satisfies Record<string, SpinnerVariantStyles>;
|
||||
|
||||
export type SpinnerVariant = keyof typeof SpinnerVariants;
|
||||
@@ -81,6 +101,7 @@ export function SpinnerV2({
|
||||
return (
|
||||
<svg
|
||||
className={tw('fill-none')}
|
||||
aria-label={ariaLabel}
|
||||
width={sizeInPixels}
|
||||
height={sizeInPixels}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user