Skip to content

Commit fac2c69

Browse files
authored
ref: replace relativeSmall with fontSize.sm (#104447)
1 parent d74d3be commit fac2c69

File tree

17 files changed

+20
-21
lines changed

17 files changed

+20
-21
lines changed

static/app/components/events/interfaces/performance/anrRootCause.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function Spacer() {
196196
}
197197

198198
const Subtitle = styled('div')`
199-
font-size: ${p => p.theme.fontSizeRelativeSmall};
199+
font-size: ${p => p.theme.fontSize.sm};
200200
font-weight: ${p => p.theme.fontWeight.normal};
201201
color: ${p => p.theme.subText};
202202
`;

static/app/components/feedback/feedbackItem/feedbackItemHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ const VerticalSpacing = styled('div')`
9797

9898
const SeenBy = styled('span')`
9999
color: ${p => p.theme.subText};
100-
font-size: ${p => p.theme.fontSizeRelativeSmall};
100+
font-size: ${p => p.theme.fontSize.sm};
101101
`;

static/app/components/feedback/feedbackItem/feedbackShortId.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ export default function FeedbackShortId({className, feedbackItem, style}: Props)
114114

115115
const ShortId = styled(TextOverflow)`
116116
color: ${p => p.theme.subText};
117-
font-size: ${p => p.theme.fontSizeRelativeSmall};
117+
font-size: ${p => p.theme.fontSize.sm};
118118
`;

static/app/components/feedback/feedbackItem/messageTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function MessageTitle({feedbackItem, eventData}: Props) {
5757

5858
const StyledTimeSince = styled(TimeSince)`
5959
color: ${p => p.theme.subText};
60-
font-size: ${p => p.theme.fontSizeRelativeSmall};
60+
font-size: ${p => p.theme.fontSize.sm};
6161
align-self: center;
6262
white-space: nowrap;
6363
`;

static/app/components/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const SentryLogoLink = styled(ExternalLink)`
132132
`;
133133

134134
const Build = styled('span')`
135-
font-size: ${p => p.theme.fontSizeRelativeSmall};
135+
font-size: ${p => p.theme.fontSize.sm};
136136
color: ${p => p.theme.subText};
137137
font-weight: ${p => p.theme.fontWeight.bold};
138138
margin-left: ${space(1)};

static/app/components/forms/controls/radioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const RadioLineText = styled('div', {shouldForwardProp})<{disabled?: boolean}>`
141141

142142
const Description = styled('div')`
143143
color: ${p => p.theme.subText};
144-
font-size: ${p => p.theme.fontSizeRelativeSmall};
144+
font-size: ${p => p.theme.fontSize.sm};
145145
line-height: 1.4em;
146146
`;
147147

static/app/components/forms/fields/segmentedRadioField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const RadioLineText = styled('div', {shouldForwardProp})<{disabled?: boolean}>`
175175

176176
const Description = styled('div')`
177177
color: ${p => p.theme.subText};
178-
font-size: ${p => p.theme.fontSizeRelativeSmall};
178+
font-size: ${p => p.theme.fontSize.sm};
179179
line-height: 1.4em;
180180
`;
181181

static/app/components/serviceIncidentDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const StatusTitle = styled('div')`
219219

220220
const StatusDate = styled('div')`
221221
color: ${p => p.theme.subText};
222-
font-size: ${p => p.theme.fontSizeRelativeSmall};
222+
font-size: ${p => p.theme.fontSize.sm};
223223
`;
224224

225225
const ComponentList = styled(List)`

static/app/stories/apiReference.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ const StoryTypesTableDefinitionCell = styled('td')`
406406
}
407407
408408
> span {
409-
font-size: ${p => p.theme.fontSizeRelativeSmall};
409+
font-size: ${p => p.theme.fontSize.sm};
410410
font-weight: ${p => p.theme.fontWeight.bold};
411411
margin-right: ${p => p.theme.space.xs};
412412
}
@@ -417,7 +417,7 @@ const StoryType = styled('div')`
417417
`;
418418

419419
const StoryPropDescription = styled('div')`
420-
font-size: ${p => p.theme.fontSizeRelativeSmall};
420+
font-size: ${p => p.theme.fontSize.sm};
421421
margin-bottom: ${p => p.theme.space.xs};
422422
`;
423423

static/app/utils/theme/theme.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,6 @@ const commonTheme = {
628628
* @TODO(jonasbadalic) remove relative font sizes
629629
* @deprecated use fontSize instead
630630
*/
631-
fontSizeRelativeSmall: '0.9em' as const,
632631
codeFontSize: '13px' as const,
633632
headerFontSize: '22px' as const,
634633

0 commit comments

Comments
 (0)