From 5cd958117e0539ff33ce1bab078cf23aa04ffbe4 Mon Sep 17 00:00:00 2001 From: Yihui Liao <44729383+yihuiliao@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:23:52 -0700 Subject: [PATCH] fix: truncate text in S2 ActionButton (#6919) --- packages/@react-spectrum/s2/src/ActionButton.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@react-spectrum/s2/src/ActionButton.tsx b/packages/@react-spectrum/s2/src/ActionButton.tsx index 81acfaa697c..31c74c58ac3 100644 --- a/packages/@react-spectrum/s2/src/ActionButton.tsx +++ b/packages/@react-spectrum/s2/src/ActionButton.tsx @@ -11,14 +11,14 @@ */ import {baseColor, fontRelative, style} from '../style/spectrum-theme' with { type: 'macro' }; -import {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton, Text} from 'react-aria-components'; +import {ButtonProps, ButtonRenderProps, ContextValue, OverlayTriggerStateContext, Provider, Button as RACButton} from 'react-aria-components'; import {centerBaseline} from './CenterBaseline'; import {createContext, forwardRef, ReactNode, useContext} from 'react'; import {FocusableRef, FocusableRefValue} from '@react-types/shared'; import {focusRing, getAllowedOverrides, StyleProps} from './style-utils' with { type: 'macro' }; import {IconContext} from './Icon'; import {pressScale} from './pressScale'; -import {TextContext} from './Content'; +import {Text, TextContext} from './Content'; import {useFocusableRef} from '@react-spectrum/utils'; import {useSpectrumContextProps} from './useSpectrumContextProps';