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
Prev Previous commit
Next Next commit
Update snaps
ayush547 committed Apr 3, 2023
commit 4f5fadacc34f4bcd2067da5d0ffb4af2601f801b
Original file line number Diff line number Diff line change
@@ -180,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",
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ exports[`Custom FAB with no shadow(iOS) 1`] = `
</Text>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -152,6 +153,7 @@ exports[`Default FAB (iOS) 1`] = `
</Text>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ exports[`ToggleButton default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ exports[`Button component tests Button circular 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -160,6 +161,7 @@ exports[`Button component tests Button customized 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -220,6 +222,7 @@ exports[`Button component tests Button default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -285,6 +288,7 @@ exports[`Button component tests Button disabled 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -346,6 +350,7 @@ exports[`Button component tests Button large 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -407,6 +412,7 @@ exports[`Button component tests Button primary 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -468,6 +474,7 @@ exports[`Button component tests Button small 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -529,6 +536,7 @@ exports[`Button component tests Button square 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -590,6 +598,7 @@ exports[`Button component tests Button subtle 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -129,12 +129,14 @@ exports[`Divider component tests Divider with all props + tokens set 1`] = `
}
>
<Text
accessibilityRole="text"
ellipsizeMode="tail"
numberOfLines={0}
onAccessibilityTap={[Function]}
style={
Object {
"color": "red",
"flexShrink": 1,
"fontFamily": "System",
"fontSize": 10,
"fontStyle": "italic",
Original file line number Diff line number Diff line change
@@ -68,6 +68,7 @@ exports[`Menu component tests Menu default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -160,6 +161,7 @@ exports[`Menu component tests Menu defaultOpen 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -252,6 +254,7 @@ exports[`Menu component tests Menu open 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -344,6 +347,7 @@ exports[`Menu component tests Menu open checkbox and divider 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -436,6 +440,7 @@ exports[`Menu component tests Menu open checkbox checked 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -528,6 +533,7 @@ exports[`Menu component tests Menu open checkbox defaultChecked 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -620,6 +626,7 @@ exports[`Menu component tests Menu open radio 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
@@ -712,6 +719,7 @@ exports[`Menu component tests Menu submenu 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -140,6 +140,7 @@ exports[`Notification component tests Notification default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -52,6 +52,7 @@ exports[`ContextualMenu default 1`] = `
}
>
<Text
accessibilityRole="text"
accessible={false}
ellipsizeMode="tail"
numberOfLines={0}
Original file line number Diff line number Diff line change
@@ -133,6 +133,7 @@ exports[`Radio component tests Radio default 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
Original file line number Diff line number Diff line change
@@ -194,6 +194,7 @@ exports[`RadioGroup component tests Radio not direct child of radio group 1`] =
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -339,6 +340,7 @@ exports[`RadioGroup component tests Radio not direct child of radio group 1`] =
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -551,6 +553,7 @@ exports[`RadioGroup component tests RadioGroup default 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -696,6 +699,7 @@ exports[`RadioGroup component tests RadioGroup default 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -1278,6 +1282,7 @@ exports[`RadioGroup component tests RadioGroup horizontal 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -1423,6 +1428,7 @@ exports[`RadioGroup component tests RadioGroup horizontal 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -1636,6 +1642,7 @@ exports[`RadioGroup component tests RadioGroup horizontal-stacked 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -1781,6 +1788,7 @@ exports[`RadioGroup component tests RadioGroup horizontal-stacked 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -2012,6 +2020,7 @@ exports[`RadioGroup component tests RadioGroup required 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",
@@ -2157,6 +2166,7 @@ exports[`RadioGroup component tests RadioGroup required 1`] = `
style={
Object {
"color": "#242424",
"flexShrink": 1,
"fontFamily": "Segoe UI",
"fontSize": 12,
"fontWeight": "400",