From c41efe7f5970a2b3b03033dd43c08fad9ef13713 Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Wed, 12 Nov 2025 16:59:06 -0800 Subject: [PATCH] Make AxoSymbol.Icon center in non-inline parents --- ts/axo/AxoBadge.dom.tsx | 2 +- ts/axo/AxoIconButton.dom.tsx | 2 +- ts/axo/AxoSymbol.dom.stories.tsx | 2 +- ts/axo/AxoSymbol.dom.tsx | 2 +- ts/components/PreferencesNotificationProfiles.dom.tsx | 10 +++------- 5 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ts/axo/AxoBadge.dom.tsx b/ts/axo/AxoBadge.dom.tsx index 7c0da2bb0f..132b689933 100644 --- a/ts/axo/AxoBadge.dom.tsx +++ b/ts/axo/AxoBadge.dom.tsx @@ -96,7 +96,7 @@ export namespace ExperimentalAxoBadge { } if (value === 'mention') { return ( - + ); diff --git a/ts/axo/AxoIconButton.dom.tsx b/ts/axo/AxoIconButton.dom.tsx index a94ada9503..65ba31c139 100644 --- a/ts/axo/AxoIconButton.dom.tsx +++ b/ts/axo/AxoIconButton.dom.tsx @@ -15,7 +15,7 @@ type GenericButtonProps = ButtonHTMLAttributes; export namespace AxoIconButton { const baseStyles = tw( - 'relative rounded-full align-top leading-none select-none', + 'relative rounded-full select-none', 'outline-border-focused not-forced-colors:outline-0 not-forced-colors:focused:outline-[2.5px]', 'forced-colors:border forced-colors:border-[ButtonBorder] forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText]', 'forced-colors:disabled:text-[GrayText]', diff --git a/ts/axo/AxoSymbol.dom.stories.tsx b/ts/axo/AxoSymbol.dom.stories.tsx index bcba25dd04..ea586f1dee 100644 --- a/ts/axo/AxoSymbol.dom.stories.tsx +++ b/ts/axo/AxoSymbol.dom.stories.tsx @@ -52,7 +52,7 @@ const SymbolInfo = memo(function SymbolInfo(props: { {variant.title} - + ; const iconStyles = tw( - 'inline-flex size-[1em] shrink-0 items-center justify-center align-middle' + 'inline-flex size-[1em] shrink-0 items-center justify-center align-middle leading-none' ); export const Icon: FC = memo(props => { diff --git a/ts/components/PreferencesNotificationProfiles.dom.tsx b/ts/components/PreferencesNotificationProfiles.dom.tsx index 87499f0d6e..08be15b184 100644 --- a/ts/components/PreferencesNotificationProfiles.dom.tsx +++ b/ts/components/PreferencesNotificationProfiles.dom.tsx @@ -1593,7 +1593,7 @@ function EmojiOrMoon({ return (
- + {segment => { // We don't need the space between the time and the am/pm if (segment.type === 'literal' && segment.text === ' ') { @@ -2103,9 +2101,7 @@ function TimePicker({