Skip to content

Commit

Permalink
Dynamic type ramp: subhead -> subheadline
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gleitman committed Oct 17, 2022
1 parent 5d3a4e3 commit 7544a1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Libraries/Text/Text/RCTDynamicTypeRamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ typedef NS_ENUM(NSInteger, RCTDynamicTypeRamp) {
RCTDynamicTypeRampCaption2,
RCTDynamicTypeRampCaption1,
RCTDynamicTypeRampFootnote,
RCTDynamicTypeRampSubhead,
RCTDynamicTypeRampSubheadline,
RCTDynamicTypeRampCallout,
RCTDynamicTypeRampBody,
RCTDynamicTypeRampHeadline,
Expand Down
6 changes: 3 additions & 3 deletions Libraries/Text/Text/RCTDynamicTypeRamp.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ @implementation RCTConvert (DynamicTypeRamp)
@"caption2": @(RCTDynamicTypeRampCaption2),
@"caption1": @(RCTDynamicTypeRampCaption1),
@"footnote": @(RCTDynamicTypeRampFootnote),
@"subhead": @(RCTDynamicTypeRampSubhead),
@"subheadline": @(RCTDynamicTypeRampSubheadline),
@"callout": @(RCTDynamicTypeRampCallout),
@"body": @(RCTDynamicTypeRampBody),
@"headline": @(RCTDynamicTypeRampHeadline),
Expand All @@ -36,7 +36,7 @@ @implementation RCTConvert (DynamicTypeRamp)
@(RCTDynamicTypeRampCaption2): UIFontTextStyleCaption2,
@(RCTDynamicTypeRampCaption1): UIFontTextStyleCaption1,
@(RCTDynamicTypeRampFootnote): UIFontTextStyleFootnote,
@(RCTDynamicTypeRampSubhead): UIFontTextStyleSubheadline,
@(RCTDynamicTypeRampSubheadline): UIFontTextStyleSubheadline,
@(RCTDynamicTypeRampCallout): UIFontTextStyleCallout,
@(RCTDynamicTypeRampBody): UIFontTextStyleBody,
@(RCTDynamicTypeRampHeadline): UIFontTextStyleHeadline,
Expand All @@ -60,7 +60,7 @@ CGFloat RCTUIBaseSizeForDynamicTypeRamp(RCTDynamicTypeRamp dynamicTypeRamp) {
@(RCTDynamicTypeRampCaption2): @11,
@(RCTDynamicTypeRampCaption1): @12,
@(RCTDynamicTypeRampFootnote): @13,
@(RCTDynamicTypeRampSubhead): @15,
@(RCTDynamicTypeRampSubheadline): @15,
@(RCTDynamicTypeRampCallout): @16,
@(RCTDynamicTypeRampBody): @17,
@(RCTDynamicTypeRampHeadline): @17,
Expand Down
2 changes: 1 addition & 1 deletion Libraries/Text/TextProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export type TextProps = $ReadOnly<{|
| 'caption2'
| 'caption1'
| 'footnote'
| 'subhead'
| 'subheadline'
| 'callout'
| 'body'
| 'headline'
Expand Down

0 comments on commit 7544a1c

Please sign in to comment.