Skip to content

Commit

Permalink
refactor: rename maxFontSizeMultiplier to labelMaxFontSizeMultiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak committed Apr 17, 2023
1 parent 4041942 commit e771197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Checkbox/CheckboxItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export type Props = {
/**
* Specifies the largest possible scale a title font can reach.
*/
maxFontSizeMultiplier?: number;
labelMaxFontSizeMultiplier?: number;
/**
* Style that is passed to Label element.
*/
Expand Down Expand Up @@ -125,7 +125,7 @@ const CheckboxItem = ({
accessibilityLabel = label,
disabled,
labelVariant = 'bodyLarge',
maxFontSizeMultiplier = 1.5,
labelMaxFontSizeMultiplier = 1.5,
...props
}: Props) => {
const theme = useInternalTheme(themeOverrides);
Expand Down Expand Up @@ -174,7 +174,7 @@ const CheckboxItem = ({
<Text
variant={labelVariant}
testID={`${testID}-text`}
maxFontSizeMultiplier={maxFontSizeMultiplier}
maxFontSizeMultiplier={labelMaxFontSizeMultiplier}
style={[
styles.label,
!theme.isV3 && styles.font,
Expand Down

0 comments on commit e771197

Please sign in to comment.