From 20c2dda13fdaab55cd8942db2e879369031e5308 Mon Sep 17 00:00:00 2001 From: Bruno Quaresma Date: Fri, 17 Nov 2023 12:02:58 -0300 Subject: [PATCH] refactor(site): replace secondary by primary color (#10757) --- site/src/components/TemplateFiles/TemplateFiles.tsx | 2 +- site/src/components/Timeline/TimelineEntry.tsx | 2 +- site/src/hooks/useClickableTableRow.ts | 2 +- site/src/pages/GroupsPage/GroupsPageView.tsx | 2 +- site/src/pages/TemplateSettingsPage/Sidebar.tsx | 2 +- site/src/pages/WorkspaceSettingsPage/Sidebar.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/src/components/TemplateFiles/TemplateFiles.tsx b/site/src/components/TemplateFiles/TemplateFiles.tsx index 1309a7e6441..758ebbd9da0 100644 --- a/site/src/components/TemplateFiles/TemplateFiles.tsx +++ b/site/src/components/TemplateFiles/TemplateFiles.tsx @@ -132,7 +132,7 @@ const styles = { width: "100%", bottom: 0, left: 0, - backgroundColor: theme.palette.secondary.dark, + backgroundColor: theme.palette.primary.main, position: "absolute", }, }), diff --git a/site/src/components/Timeline/TimelineEntry.tsx b/site/src/components/Timeline/TimelineEntry.tsx index c1a6895467d..04d4cf83fbf 100644 --- a/site/src/components/Timeline/TimelineEntry.tsx +++ b/site/src/components/Timeline/TimelineEntry.tsx @@ -21,7 +21,7 @@ export const TimelineEntry = forwardRef(function TimelineEntry( outlineStyle: "solid", outlineOffset: -1, outlineWidth: 2, - outlineColor: theme.palette.secondary.dark, + outlineColor: theme.palette.primary.main, }, "& td:before": { position: "absolute", diff --git a/site/src/hooks/useClickableTableRow.ts b/site/src/hooks/useClickableTableRow.ts index 1fb4ea6aa76..95a20b85977 100644 --- a/site/src/hooks/useClickableTableRow.ts +++ b/site/src/hooks/useClickableTableRow.ts @@ -37,7 +37,7 @@ export const useClickableTableRow = ({ cursor: "pointer", "&:focus": { - outline: `1px solid ${theme.palette.secondary.dark}`, + outline: `1px solid ${theme.palette.primary.main}`, outlineOffset: -1, }, diff --git a/site/src/pages/GroupsPage/GroupsPageView.tsx b/site/src/pages/GroupsPage/GroupsPageView.tsx index 4d80b401119..0eae004e5d8 100644 --- a/site/src/pages/GroupsPage/GroupsPageView.tsx +++ b/site/src/pages/GroupsPage/GroupsPageView.tsx @@ -216,7 +216,7 @@ const styles = { }, "&:focus": { - outline: `1px solid ${theme.palette.secondary.dark}`, + outline: `1px solid ${theme.palette.primary.main}`, }, "& .MuiTableCell-root:last-child": { diff --git a/site/src/pages/TemplateSettingsPage/Sidebar.tsx b/site/src/pages/TemplateSettingsPage/Sidebar.tsx index 98928127994..88bf1e1882f 100644 --- a/site/src/pages/TemplateSettingsPage/Sidebar.tsx +++ b/site/src/pages/TemplateSettingsPage/Sidebar.tsx @@ -53,7 +53,7 @@ const SidebarNavItem: FC< position: absolute; left: 0; top: 0; - background-color: ${theme.palette.secondary.dark}; + background-color: ${theme.palette.primary.main}; border-top-left-radius: 8px; border-bottom-left-radius: 8px; } diff --git a/site/src/pages/WorkspaceSettingsPage/Sidebar.tsx b/site/src/pages/WorkspaceSettingsPage/Sidebar.tsx index 0e789601d9f..53b73579d52 100644 --- a/site/src/pages/WorkspaceSettingsPage/Sidebar.tsx +++ b/site/src/pages/WorkspaceSettingsPage/Sidebar.tsx @@ -47,7 +47,7 @@ const SidebarNavItem: FC< position: "absolute", left: 0, top: 0, - backgroundColor: theme.palette.secondary.dark, + backgroundColor: theme.palette.primary.main, borderTopLeftRadius: 8, borderBottomLeftRadius: 8, },