Skip to content

Commit 4e7ce65

Browse files
authored
chore: remove uiGlobalFontSize flag (#9331)
1-3383
1 parent 27bd4e2 commit 4e7ce65

File tree

12 files changed

+86
-1374
lines changed

12 files changed

+86
-1374
lines changed

frontend/src/component/common/InstanceStatus/__snapshots__/InstanceStatusBar.test.tsx.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports[`InstanceStatusBar should warn when the trial has churned 1`] = `
2020
/>
2121
</svg>
2222
<p
23-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
23+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
2424
>
2525
<strong>
2626
Warning!
@@ -60,7 +60,7 @@ exports[`InstanceStatusBar should warn when the trial has expired 1`] = `
6060
/>
6161
</svg>
6262
<p
63-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
63+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
6464
>
6565
<strong>
6666
Warning!
@@ -100,7 +100,7 @@ exports[`InstanceStatusBar should warn when the trial has expired for enterprise
100100
/>
101101
</svg>
102102
<p
103-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
103+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
104104
>
105105
<strong>
106106
Warning!
@@ -137,7 +137,7 @@ exports[`InstanceStatusBar should warn when the trial is about to expire 1`] = `
137137
/>
138138
</svg>
139139
<p
140-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
140+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
141141
>
142142
<strong>
143143
Heads up!
@@ -172,7 +172,7 @@ exports[`InstanceStatusBar should warn when the trial is far from expired 1`] =
172172
/>
173173
</svg>
174174
<p
175-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
175+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
176176
>
177177
<strong>
178178
Heads up!
@@ -205,7 +205,7 @@ exports[`InstanceStatusBar should warn when trialExpiry has passed 1`] = `
205205
/>
206206
</svg>
207207
<p
208-
class="MuiTypography-root MuiTypography-body1 css-rviqjc-MuiTypography-root"
208+
class="MuiTypography-root MuiTypography-body1 css-12kykmh-MuiTypography-root"
209209
>
210210
<strong>
211211
Warning!

frontend/src/component/feature/FeatureStrategy/FeatureStrategyMenu/FeatureStrategyMenu.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { FeatureStrategyMenuCards } from './FeatureStrategyMenuCards/FeatureStra
1010
import { formatCreateStrategyPath } from '../FeatureStrategyCreate/FeatureStrategyCreate';
1111
import MoreVert from '@mui/icons-material/MoreVert';
1212
import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
13-
import { useUiFlag } from 'hooks/useUiFlag';
1413
import { ReleasePlanAddChangeRequestDialog } from 'component/feature/FeatureView/FeatureOverview/ReleasePlan/ChangeRequest/ReleasePlanAddChangeRequestDialog';
1514
import type { IReleasePlanTemplate } from 'interfaces/releasePlans';
1615
import { useChangeRequestApi } from 'hooks/api/actions/useChangeRequestApi/useChangeRequestApi';
@@ -63,7 +62,6 @@ export const FeatureStrategyMenu = ({
6362
const { addChange } = useChangeRequestApi();
6463
const { refetch: refetchChangeRequests } =
6564
usePendingChangeRequests(projectId);
66-
const uiFontSizeRedesign = useUiFlag('uiGlobalFontSize');
6765

6866
const onClose = () => {
6967
setAnchor(undefined);
@@ -119,7 +117,6 @@ export const FeatureStrategyMenu = ({
119117
onClick={openDefaultStrategyCreationModal}
120118
aria-labelledby={popoverId}
121119
variant={variant}
122-
size={uiFontSizeRedesign ? undefined : size}
123120
sx={{ minWidth: matchWidth ? '282px' : 'auto' }}
124121
disabled={Boolean(disableReason)}
125122
tooltipProps={{
@@ -135,7 +132,6 @@ export const FeatureStrategyMenu = ({
135132
environmentId={environmentId}
136133
onClick={openMoreStrategies}
137134
variant='outlined'
138-
size={uiFontSizeRedesign ? undefined : size}
139135
hideLockIcon
140136
disabled={Boolean(disableReason)}
141137
tooltipProps={{

frontend/src/component/feedback/FeedbackCES/__snapshots__/FeedbackCESForm.test.tsx.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ exports[`FeedbackCESForm 1`] = `
131131
class="MuiFormControl-root MuiFormControl-fullWidth MuiTextField-root css-wb57ya-MuiFormControl-root-MuiTextField-root"
132132
>
133133
<div
134-
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-multiline css-1nhioic-MuiInputBase-root-MuiOutlinedInput-root"
134+
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-fullWidth MuiInputBase-formControl MuiInputBase-multiline css-103sgwy-MuiInputBase-root-MuiOutlinedInput-root"
135135
>
136136
<textarea
137137
aria-invalid="false"
@@ -169,7 +169,7 @@ exports[`FeedbackCESForm 1`] = `
169169
hidden=""
170170
>
171171
<button
172-
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-1ln3ri4-MuiButtonBase-root-MuiButton-root"
172+
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium Mui-disabled MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium css-z357ol-MuiButtonBase-root-MuiButton-root"
173173
disabled=""
174174
tabindex="-1"
175175
type="submit"

frontend/src/component/menu/Footer/ApiDetails/__snapshots__/ApiDetails.test.tsx.snap

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ exports[`renders correctly with empty version 1`] = `
77
title="API details"
88
>
99
<h2
10-
class="css-gtu1fw"
10+
class="css-wc53hr"
1111
>
1212
Unleash
1313
@@ -39,7 +39,7 @@ exports[`renders correctly with ui-config 1`] = `
3939
title="API details"
4040
>
4141
<h2
42-
class="css-gtu1fw"
42+
class="css-wc53hr"
4343
>
4444
Unleash
4545
@@ -72,7 +72,7 @@ exports[`renders correctly with versionInfo 1`] = `
7272
title="API details"
7373
>
7474
<h2
75-
class="css-gtu1fw"
75+
class="css-wc53hr"
7676
>
7777
Unleash
7878
@@ -109,7 +109,7 @@ exports[`renders correctly without uiConfig 1`] = `
109109
title="API details"
110110
>
111111
<h2
112-
class="css-gtu1fw"
112+
class="css-wc53hr"
113113
>
114114
Unleash
115115

0 commit comments

Comments
 (0)