From fe05eaf3119d2a3a1805561cd67014a71fbb1b4a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 30 Jul 2025 20:31:54 -0500 Subject: [PATCH] Rename negative_secondary to negative_subtle --- src/components/Button.tsx | 10 +++++----- src/components/live/EditLiveDialog.tsx | 2 +- src/view/screens/Storybook/Buttons.tsx | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index c0c75cf0ae..5d8a4c548d 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -25,7 +25,7 @@ export type ButtonColor = | 'secondary' | 'secondary_inverted' | 'negative' - | 'negative_secondary' + | 'negative_subtle' export type ButtonSize = 'tiny' | 'small' | 'large' export type ButtonShape = 'round' | 'square' | 'default' export type VariantProps = { @@ -265,7 +265,7 @@ export const Button = React.forwardRef( }), }) } - } else if (color === 'negative_secondary') { + } else if (color === 'negative_subtle') { if (!disabled) { baseStyles.push({ backgroundColor: select(t.name, { @@ -395,7 +395,7 @@ export const Button = React.forwardRef( }) } } - } else if (color === 'negative_secondary') { + } else if (color === 'negative_subtle') { if (variant === 'outline') { baseStyles.push(a.border, t.atoms.bg, { borderWidth: 1, @@ -585,7 +585,7 @@ export function useSharedButtonTextStyles() { } else { baseStyles.push({color: t.palette.negative_300}) } - } else if (color === 'negative_secondary') { + } else if (color === 'negative_subtle') { if (!disabled) { baseStyles.push({ color: select(t.name, { @@ -682,7 +682,7 @@ export function useSharedButtonTextStyles() { baseStyles.push({color: t.palette.negative_400, opacity: 0.5}) } } - } else if (color === 'negative_secondary') { + } else if (color === 'negative_subtle') { if (variant === 'outline') { if (!disabled) { baseStyles.push({color: t.palette.negative_400}) diff --git a/src/components/live/EditLiveDialog.tsx b/src/components/live/EditLiveDialog.tsx index cdffb3286e..63fe664e55 100644 --- a/src/components/live/EditLiveDialog.tsx +++ b/src/components/live/EditLiveDialog.tsx @@ -240,7 +240,7 @@ function DialogInner({ label={_(msg`Remove live status`)} onPress={() => removeLiveStatus()} size={platform({native: 'large', web: 'small'})} - color="negative_secondary" + color="negative_subtle" variant="solid" disabled={isRemovingLiveStatus || isGoingLive}> diff --git a/src/view/screens/Storybook/Buttons.tsx b/src/view/screens/Storybook/Buttons.tsx index 8f1027d0a7..0ede1faceb 100644 --- a/src/view/screens/Storybook/Buttons.tsx +++ b/src/view/screens/Storybook/Buttons.tsx @@ -23,7 +23,7 @@ export function Buttons() { 'secondary', 'secondary_inverted', 'negative', - 'negative_secondary', + 'negative_subtle', ].map(color => ( {['tiny', 'small', 'large'].map(size => (