Skip to content

Commit

Permalink
Enable scaled chevron in the ListItem… components
Browse files Browse the repository at this point in the history
  • Loading branch information
dmnplb committed Nov 29, 2024
1 parent 62e7f25 commit 0d58e5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/listitems/ListItemNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ export const ListItemNav = ({
{loading && <LoadingSpinner color={primaryColor} />}
{!loading && !hideChevron && (
<Icon
allowFontScaling
name="chevronRightListItem"
color={navIconColor}
size={IOListItemVisualParams.chevronSize}
Expand Down
1 change: 1 addition & 0 deletions src/components/listitems/ListItemNavAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ export const ListItemNavAlert = ({
<View style={IOStyles.flex}>{listItemNavAlertContent}</View>

<Icon
allowFontScaling
name="chevronRightListItem"
color={iconColor}
size={IOListItemVisualParams.chevronSize}
Expand Down
1 change: 1 addition & 0 deletions src/components/listitems/ListItemTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ export const ListItemTransaction = ({
)}
{showChevron && (
<Icon
allowFontScaling
name="chevronRightListItem"
color={interactiveColor}
size={IOListItemVisualParams.chevronSize}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/accessibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const useIOFontDynamicScale = (): {
const { fontScale } = useWindowDimensions();

const deviceFontScale = isExperimental ? fontScale : 1;
const hugeFontEnabled = deviceFontScale >= 1.5;
const hugeFontEnabled = deviceFontScale >= 1.35;

const dynamicFontScale = Math.min(deviceFontScale, IOFontSizeMultiplier);
/* We make the spacing dynamic based on the font scale, but we multiply
Expand Down

0 comments on commit 0d58e5b

Please sign in to comment.