diff --git a/.changeset/late-rules-think.md b/.changeset/late-rules-think.md new file mode 100644 index 00000000000..efa7048ac7f --- /dev/null +++ b/.changeset/late-rules-think.md @@ -0,0 +1,5 @@ +--- +"@fluentui-react-native/button": patch +--- + +Remove overflow hidden from FURN button for windows diff --git a/.changeset/small-spiders-pull.md b/.changeset/small-spiders-pull.md new file mode 100644 index 00000000000..fb100976f28 --- /dev/null +++ b/.changeset/small-spiders-pull.md @@ -0,0 +1,5 @@ +--- +"@fluentui-react-native/tooltip": patch +--- + +Update snapshot diff --git a/packages/components/Button/src/Button.styling.ts b/packages/components/Button/src/Button.styling.ts index 38284146bed..c9724251ade 100644 --- a/packages/components/Button/src/Button.styling.ts +++ b/packages/components/Button/src/Button.styling.ts @@ -33,6 +33,8 @@ export const buttonStates: (keyof ButtonTokens)[] = [ 'disabled', ]; +const applyOverflowHiddenToRoot = Platform.OS === 'ios' || Platform.OS === 'macos'; + export const stylingSettings: UseStylingOptions = { tokens: [defaultButtonTokens, defaultButtonFontTokens, defaultButtonColorTokens, buttonName], states: buttonStates, @@ -58,7 +60,7 @@ export const stylingSettings: UseStylingOptions ({ style: { display: 'flex', - overflow: 'hidden', + overflow: applyOverflowHiddenToRoot ? 'hidden' : undefined, alignItems: 'center', flexDirection: 'row', alignSelf: 'flex-start', diff --git a/packages/experimental/Tooltip/src/__tests__/__snapshots__/Tooltip.test.tsx.snap b/packages/experimental/Tooltip/src/__tests__/__snapshots__/Tooltip.test.tsx.snap index 0cfa7efb042..3e4445ca268 100644 --- a/packages/experimental/Tooltip/src/__tests__/__snapshots__/Tooltip.test.tsx.snap +++ b/packages/experimental/Tooltip/src/__tests__/__snapshots__/Tooltip.test.tsx.snap @@ -66,7 +66,7 @@ exports[`Tooltip component tests Tooltip default 1`] = ` "justifyContent": "center", "minHeight": 24, "minWidth": 64, - "overflow": "hidden", + "overflow": undefined, "padding": 3, "paddingHorizontal": 7, "width": undefined,