Skip to content

Commit ee81c62

Browse files
committed
ok
1 parent c07e571 commit ee81c62

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

site/src/components/Dialogs/Dialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const DialogActionButtons: React.FC<DialogActionButtonsProps> = ({
5858
disabled={disabled}
5959
type="submit"
6060
css={[
61-
type === "delete" && styles.warningButton,
61+
type === "delete" && styles.dangerButton,
6262
type === "success" && styles.successButton,
6363
]}
6464
>
@@ -70,7 +70,7 @@ export const DialogActionButtons: React.FC<DialogActionButtonsProps> = ({
7070
};
7171

7272
const styles = {
73-
warningButton: (theme) => ({
73+
dangerButton: (theme) => ({
7474
"&.MuiButton-contained": {
7575
backgroundColor: theme.experimental.roles.danger.fill,
7676
borderColor: theme.experimental.roles.danger.outline,

site/src/components/Form/Form.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,7 @@ export const FormSection: FC<
120120
}}
121121
className={classes.sectionInfo}
122122
>
123-
<h2
124-
css={[
125-
styles.formSectionInfoTitle,
126-
alpha && styles.formSectionInfoTitleAlpha,
127-
]}
128-
className={classes.infoTitle}
129-
>
123+
<h2 css={styles.formSectionInfoTitle} className={classes.infoTitle}>
130124
{title}
131125
{alpha && <AlphaBadge />}
132126
{deprecated && <DeprecatedBadge />}
@@ -149,19 +143,18 @@ export const FormFields: FC<PropsWithChildren> = ({ children }) => {
149143

150144
const styles = {
151145
formSectionInfoTitle: (theme) => ({
146+
display: "flex",
147+
gap: 6,
152148
fontSize: 20,
153149
color: theme.palette.text.primary,
154150
fontWeight: 400,
155151
margin: 0,
156152
marginBottom: 8,
157-
}),
158-
159-
formSectionInfoTitleAlpha: {
160153
display: "flex",
161154
flexDirection: "row",
162155
alignItems: "center",
163156
gap: 12,
164-
},
157+
}),
165158

166159
formSectionInfoDescription: (theme) => ({
167160
fontSize: 14,

site/src/pages/DeploySettingsPage/LicensesSettingsPage/LicensesSettingsPageView.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import LicensesSettingsPageView from "./LicensesSettingsPageView";
1+
import { chromatic } from "testHelpers/chromatic";
22
import { MockLicenseResponse } from "testHelpers/entities";
3+
import LicensesSettingsPageView from "./LicensesSettingsPageView";
34

45
export default {
56
title: "pages/DeploySettingsPage/LicensesSettingsPageView",
7+
parameters: { chromatic },
68
component: LicensesSettingsPageView,
79
};
810

site/src/pages/HealthPage/storybook.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1+
import type { Meta } from "@storybook/react";
12
import { useQueryClient } from "react-query";
23
import {
34
reactRouterParameters,
45
reactRouterOutlet,
56
RouteDefinition,
67
} from "storybook-addon-react-router-v6";
8+
import { chromatic } from "testHelpers/chromatic";
79
import {
810
MockBuildInfo,
911
MockEntitlements,
1012
MockExperiments,
1113
MockHealth,
1214
MockHealthSettings,
1315
} from "testHelpers/entities";
14-
import { Meta } from "@storybook/react";
1516
import { HEALTH_QUERY_KEY, HEALTH_QUERY_SETTINGS_KEY } from "api/queries/debug";
1617
import { DashboardProvider } from "components/Dashboard/DashboardProvider";
1718
import { HealthLayout } from "./HealthLayout";
@@ -26,6 +27,7 @@ export const generateMeta = ({ element, path, params }: MetaOptions): Meta => {
2627
return {
2728
render: HealthLayout,
2829
parameters: {
30+
chromatic,
2931
layout: "fullscreen",
3032
reactRouter: reactRouterParameters({
3133
location: { pathParams: params },

site/src/pages/TemplatePage/TemplateInsightsPage/TemplateInsightsPage.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2-
import { TemplateInsightsPageView } from "./TemplateInsightsPage";
2+
import { chromatic } from "testHelpers/chromatic";
33
import { MockEntitlementsWithUserLimit } from "testHelpers/entities";
4+
import { TemplateInsightsPageView } from "./TemplateInsightsPage";
45

56
const meta: Meta<typeof TemplateInsightsPageView> = {
67
title: "pages/TemplatePage/TemplateInsightsPageView",
8+
parameters: { chromatic },
79
component: TemplateInsightsPageView,
810
};
911

site/src/theme/dark/experimental.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default {
5151
danger: {
5252
background: colors.orange[950],
5353
outline: colors.orange[500],
54-
fill: colors.orange[600],
54+
fill: colors.orange[700],
5555
text: colors.orange[50],
5656
disabled: {
5757
background: colors.orange[950],

0 commit comments

Comments
 (0)