diff --git a/apps/fluent-tester/src/TestComponents/CheckboxV1/CheckboxV1Test.tsx b/apps/fluent-tester/src/TestComponents/CheckboxV1/CheckboxV1Test.tsx index be580f531a..0e2ec58316 100644 --- a/apps/fluent-tester/src/TestComponents/CheckboxV1/CheckboxV1Test.tsx +++ b/apps/fluent-tester/src/TestComponents/CheckboxV1/CheckboxV1Test.tsx @@ -21,7 +21,7 @@ function onChangeUncontrolled(_e: InteractionEvent, isChecked: boolean) { const BasicCheckbox: React.FunctionComponent = () => { return ( - + diff --git a/change/@fluentui-react-native-badge-feb689b1-06fe-435b-a373-2f1bbd599581.json b/change/@fluentui-react-native-badge-feb689b1-06fe-435b-a373-2f1bbd599581.json new file mode 100644 index 0000000000..54e6091b59 --- /dev/null +++ b/change/@fluentui-react-native-badge-feb689b1-06fe-435b-a373-2f1bbd599581.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/badge", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-button-e18cbcea-165b-4b0b-b025-0e00edc776e8.json b/change/@fluentui-react-native-button-e18cbcea-165b-4b0b-b025-0e00edc776e8.json new file mode 100644 index 0000000000..2d8953990d --- /dev/null +++ b/change/@fluentui-react-native-button-e18cbcea-165b-4b0b-b025-0e00edc776e8.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/button", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-divider-557c1c15-03b1-4007-bc1d-04552901a513.json b/change/@fluentui-react-native-divider-557c1c15-03b1-4007-bc1d-04552901a513.json new file mode 100644 index 0000000000..b65e409d6e --- /dev/null +++ b/change/@fluentui-react-native-divider-557c1c15-03b1-4007-bc1d-04552901a513.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/divider", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-experimental-menu-button-136589b3-4a23-4570-bf5a-28a2540f52fd.json b/change/@fluentui-react-native-experimental-menu-button-136589b3-4a23-4570-bf5a-28a2540f52fd.json new file mode 100644 index 0000000000..e917d1a826 --- /dev/null +++ b/change/@fluentui-react-native-experimental-menu-button-136589b3-4a23-4570-bf5a-28a2540f52fd.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/experimental-menu-button", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-experimental-radio-group-64061eb3-b4b2-48b4-a93d-bd1619719e66.json b/change/@fluentui-react-native-experimental-radio-group-64061eb3-b4b2-48b4-a93d-bd1619719e66.json new file mode 100644 index 0000000000..eb9d2895ed --- /dev/null +++ b/change/@fluentui-react-native-experimental-radio-group-64061eb3-b4b2-48b4-a93d-bd1619719e66.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/experimental-radio-group", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-experimental-tabs-e9d30d85-d5d3-4d9d-b2b4-13be03e53eeb.json b/change/@fluentui-react-native-experimental-tabs-e9d30d85-d5d3-4d9d-b2b4-13be03e53eeb.json new file mode 100644 index 0000000000..aac5d07bef --- /dev/null +++ b/change/@fluentui-react-native-experimental-tabs-e9d30d85-d5d3-4d9d-b2b4-13be03e53eeb.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/experimental-tabs", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-link-b9049396-6b19-4751-9370-0b65d7d4f36c.json b/change/@fluentui-react-native-link-b9049396-6b19-4751-9370-0b65d7d4f36c.json new file mode 100644 index 0000000000..d9f56a9fd9 --- /dev/null +++ b/change/@fluentui-react-native-link-b9049396-6b19-4751-9370-0b65d7d4f36c.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/link", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-menu-4429ef8f-e6e0-4fda-898e-d1cac73b4e64.json b/change/@fluentui-react-native-menu-4429ef8f-e6e0-4fda-898e-d1cac73b4e64.json new file mode 100644 index 0000000000..a2e9d89054 --- /dev/null +++ b/change/@fluentui-react-native-menu-4429ef8f-e6e0-4fda-898e-d1cac73b4e64.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/menu", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-notification-ad05670d-b703-43ab-808a-e9f140d89be1.json b/change/@fluentui-react-native-notification-ad05670d-b703-43ab-808a-e9f140d89be1.json new file mode 100644 index 0000000000..646875fa69 --- /dev/null +++ b/change/@fluentui-react-native-notification-ad05670d-b703-43ab-808a-e9f140d89be1.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Fix text not wrapping", + "packageName": "@fluentui-react-native/notification", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-tester-2600660f-25a6-4400-8d1e-4ed08ebe1af6.json b/change/@fluentui-react-native-tester-2600660f-25a6-4400-8d1e-4ed08ebe1af6.json new file mode 100644 index 0000000000..0892589deb --- /dev/null +++ b/change/@fluentui-react-native-tester-2600660f-25a6-4400-8d1e-4ed08ebe1af6.json @@ -0,0 +1,7 @@ +{ + "type": "none", + "comment": "Add fix for radio", + "packageName": "@fluentui-react-native/tester", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "none" +} diff --git a/change/@fluentui-react-native-text-b1ea1d13-9ce7-4949-902a-b4894ce95b80.json b/change/@fluentui-react-native-text-b1ea1d13-9ce7-4949-902a-b4894ce95b80.json new file mode 100644 index 0000000000..17e97cf187 --- /dev/null +++ b/change/@fluentui-react-native-text-b1ea1d13-9ce7-4949-902a-b4894ce95b80.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "Fix text overflowing off the screen", + "packageName": "@fluentui-react-native/text", + "email": "ayushsinghs@yahoo.in", + "dependentChangeType": "patch" +} diff --git a/packages/components/Badge/src/__tests__/__snapshots__/Badge.test.tsx.snap b/packages/components/Badge/src/__tests__/__snapshots__/Badge.test.tsx.snap index f9ce57000a..193582e64c 100644 --- a/packages/components/Badge/src/__tests__/__snapshots__/Badge.test.tsx.snap +++ b/packages/components/Badge/src/__tests__/__snapshots__/Badge.test.tsx.snap @@ -39,6 +39,7 @@ exports[`Badge component tests Badge all props 1`] = ` ♣ ((props: TextProps, useTo // now build the text style from tokens that can be shared between different Text instances const [tokenStyle] = cache( () => ({ + flexShrink: 1, // Fixes bug in RN where text does not wrap correctly. RN bug #1438 margin: 0, color: tokens.color, fontStyle: tokens.fontStyle, @@ -138,7 +139,8 @@ export const Text = compressible((props: TextProps, useTo // return a continuation function that allows this text to be compressed return (extra: TextProps, children: React.ReactNode) => { - const mergedProps = { + const mergedProps: TextProps = { + accessibilityRole: 'text', ...rest, ...keyProps, ...filteredProps, diff --git a/packages/components/text/src/__tests__/__snapshots__/Text.test.tsx.snap b/packages/components/text/src/__tests__/__snapshots__/Text.test.tsx.snap index 180f685128..27cbf809ff 100644 --- a/packages/components/text/src/__tests__/__snapshots__/Text.test.tsx.snap +++ b/packages/components/text/src/__tests__/__snapshots__/Text.test.tsx.snap @@ -2,11 +2,13 @@ exports[`Text component tests Text all props 1`] = `