Skip to content

Commit

Permalink
Limit adjustment to display font size to iOS
Browse files Browse the repository at this point in the history
Android automatically takes into account accessibility settings when displaying font sizes. If we add adjustments, it causes the font to look abnormally big on Android. As such, we can limit this function to iOS.
  • Loading branch information
Siobhan committed Dec 15, 2023
1 parent 23002e7 commit a934d41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,9 @@ export class RichText extends Component {
const editableProps = this.getEditableProps();
const blockUseDefaultFont = this.getBlockUseDefaultFont();

const fontSize = getScreenAdjustedFontSize( currentFontSize );
const fontSize = this.isIOS
? getScreenAdjustedFontSize( currentFontSize )
: currentFontSize;
const lineHeight = this.getLineHeight();

const {
Expand Down

0 comments on commit a934d41

Please sign in to comment.