Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Text] Fix text not wrapping #2742

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function onChangeUncontrolled(_e: InteractionEvent, isChecked: boolean) {
const BasicCheckbox: React.FunctionComponent = () => {
return (
<View>
<Checkbox label="Unchecked checkbox (undefined)" onChange={onChangeUncontrolled} />
<Checkbox label="Unchecked checkbox (undefined) aidasdijk ahsdihsaidhas jasdhasid" onChange={onChangeUncontrolled} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should leave the previous text only.
As we have already done our testing, this is not required for tester.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or may be add a bigger valid(meaningful) string?

<Checkbox label="Unchecked checkbox (uncontrolled)" onChange={onChangeUncontrolled} defaultChecked={false} />
<Checkbox label="Checked checkbox (uncontrolled)" onChange={onChangeUncontrolled} defaultChecked accessibilityLabel="Hello there" />
<Checkbox label="Disabled checkbox" disabled />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/badge",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/button",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/divider",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/experimental-menu-button",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/experimental-radio-group",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/experimental-tabs",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/link",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/menu",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Fix text not wrapping",
"packageName": "@fluentui-react-native/notification",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Add fix for radio",
"packageName": "@fluentui-react-native/tester",
"email": "[email protected]",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Fix text overflowing off the screen",
"packageName": "@fluentui-react-native/text",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ exports[`Badge component tests Badge all props 1`] = `
</Text>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
Expand Down Expand Up @@ -82,13 +84,15 @@ exports[`Badge component tests Badge tokens 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
Expand Down Expand Up @@ -176,13 +180,15 @@ exports[`Badge component tests Filled badge with shadow 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
Expand Down Expand Up @@ -234,12 +240,14 @@ exports[`CounterBadge component tests CounterBadge all props 1`] = `
</Text>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
Expand Down Expand Up @@ -278,12 +286,14 @@ exports[`CounterBadge component tests CounterBadge shows 99+ 1`] = `
}
>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
Expand Down Expand Up @@ -322,12 +332,14 @@ exports[`CounterBadge component tests CounterBadge shows 1000+ 1`] = `
}
>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
Expand Down Expand Up @@ -367,12 +379,14 @@ exports[`CounterBadge component tests CounterBadge shows zero 1`] = `
}
>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
Expand Down Expand Up @@ -411,12 +425,14 @@ exports[`CounterBadge component tests CounterBadge tokens 1`] = `
}
>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontStyle": undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ exports[`Custom FAB with no shadow(iOS) 1`] = `
</Text>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 13,
"fontWeight": "400",
Expand Down Expand Up @@ -151,12 +153,14 @@ exports[`Default FAB (iOS) 1`] = `
</Text>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 13,
"fontWeight": "400",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,14 @@ exports[`ToggleButton default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@ exports[`Button component tests Button circular 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -159,12 +161,14 @@ exports[`Button component tests Button customized 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -218,12 +222,14 @@ exports[`Button component tests Button default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -282,12 +288,14 @@ exports[`Button component tests Button disabled 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#d2d0ce",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -342,12 +350,14 @@ exports[`Button component tests Button large 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 17,
"fontWeight": "600",
Expand Down Expand Up @@ -402,12 +412,14 @@ exports[`Button component tests Button primary 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -462,12 +474,14 @@ exports[`Button component tests Button small 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 13,
"fontWeight": "400",
Expand Down Expand Up @@ -522,12 +536,14 @@ exports[`Button component tests Button square 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#ffffff",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down Expand Up @@ -582,12 +598,14 @@ exports[`Button component tests Button subtle 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
style={
Object {
"color": "#323130",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 15,
"fontWeight": "600",
Expand Down
Loading