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

[IOPLT-810] Enable allowFontScaling by default for all citizens #6561

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
"dependencies": {
"@gorhom/bottom-sheet": "^4.1.5",
"@pagopa/io-app-design-system": "4.3.0",
"@pagopa/io-app-design-system": "4.4.3",
"@pagopa/io-pagopa-commons": "^3.1.0",
"@pagopa/io-react-native-cieid": "^0.3.5",
"@pagopa/io-react-native-crypto": "^1.0.1",
Expand Down
84 changes: 42 additions & 42 deletions ts/components/__tests__/__snapshots__/IOMarkdown.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
exports[`IOMarkdown Should match snapshot 1`] = `
<View>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="largeTitle"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand All @@ -30,9 +30,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title1"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand All @@ -57,9 +57,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -104,9 +104,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -168,9 +168,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -208,9 +208,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -238,9 +238,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -278,9 +278,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -308,9 +308,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -348,9 +348,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -387,9 +387,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -451,9 +451,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -492,9 +492,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -522,9 +522,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -563,9 +563,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -593,9 +593,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -634,9 +634,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -673,9 +673,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand All @@ -693,9 +693,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
Here is a link:
<Text
accessibilityRole="link"
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
onPress={[Function]}
style={
[
Expand Down Expand Up @@ -724,9 +724,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -768,9 +768,9 @@ exports[`IOMarkdown Should match snapshot 1`] = `
}
/>
<Text
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="body"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ exports[`LoadingSpinnerOverlay Should match all-properties and loading snapshot
>
<Text
accessible={true}
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -315,6 +315,9 @@ exports[`LoadingSpinnerOverlay Should match all-properties and loading snapshot
{
"height": 40,
},
{
"columnGap": 8,
},
false,
{
"backgroundColor": "rgba(0,115,230,0)",
Expand All @@ -331,10 +334,10 @@ exports[`LoadingSpinnerOverlay Should match all-properties and loading snapshot
<Text
accessibilityElementsHidden={true}
accessible={false}
allowFontScaling={false}
allowFontScaling={true}
ellipsizeMode="tail"
importantForAccessibility="no-hide-descendants"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
numberOfLines={1}
style={
[
Expand Down Expand Up @@ -639,9 +642,9 @@ exports[`LoadingSpinnerOverlay Should match base loading snapshot 1`] = `
>
<Text
accessible={true}
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ exports[`WebviewComponent tests snapshot for component 1`] = `
>
<Text
accessible={true}
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,9 @@ exports[`LoadingScreenContent should match the snapshot with title, a child, hea
</View>
<Text
accessibilityLabel="Test Content Title"
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -1159,9 +1159,9 @@ exports[`LoadingScreenContent should match the snapshot with title, a child, hea
</View>
<Text
accessibilityLabel="Test Content Title"
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -1759,9 +1759,9 @@ exports[`LoadingScreenContent should match the snapshot with title, no children,
</View>
<Text
accessibilityLabel="Test Content Title"
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down Expand Up @@ -2356,9 +2356,9 @@ exports[`LoadingScreenContent should match the snapshot with title, no children,
</View>
<Text
accessibilityLabel="Test Content Title"
allowFontScaling={false}
allowFontScaling={true}
dynamicTypeRamp="title2"
maxFontSizeMultiplier={1.25}
maxFontSizeMultiplier={1.5}
style={
[
{},
Expand Down
Loading
Loading