Skip to content
Merged
Prev Previous commit
Next Next commit
Remove remaining paperLight elements
  • Loading branch information
BrunoQuaresma committed Nov 24, 2023
commit 60d8ec86f97364a3f46a4bc1fb919f76e61e5a65
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const FailureTooltip: FC<TooltipProps> = ({ children, ...tooltipProps }) => {
const popper = useClassName(
(css, theme) => css`
& .${tooltipClasses.tooltip} {
background-color: ${theme.palette.background.paperLight};
background-color: ${theme.palette.background.paper};
border: 1px solid ${theme.palette.divider};
font-size: 12px;
padding: 8px 10px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const styles = {
color: theme.palette.text.secondary,

"&:hover .rdrStaticRangeLabel": {
background: theme.palette.background.paperLight,
background: theme.palette.background.paper,
color: theme.palette.text.primary,
},

Expand All @@ -175,7 +175,7 @@ const styles = {
},

"& .rdrCalendarWrapper": {
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
},

"& .rdrDateDisplayItem": {
Expand All @@ -188,7 +188,7 @@ const styles = {

"&.rdrDateDisplayItemActive": {
borderColor: theme.palette.text.primary,
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,

"& input": {
color: theme.palette.text.primary,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const styles = {
},

active: (theme) => ({
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
}),

versionCell: {
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/TerminalPage/TerminalAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const TerminalAlert = (props: AlertProps) => {
borderWidth: 0,
borderBottomWidth: 1,
borderBottomColor: (theme) => theme.palette.divider,
backgroundColor: (theme) => theme.palette.background.paperLight,
backgroundColor: (theme) => theme.palette.background.paper,
borderLeft: (theme) =>
`3px solid ${theme.palette[props.severity!].light}`,
marginBottom: 1,
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/TerminalPage/TerminalPageAlert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export default ({
borderWidth: 0,
borderBottomWidth: 1,
borderBottomColor: (theme) => theme.palette.divider,
backgroundColor: (theme) => theme.palette.background.paperLight,
backgroundColor: (theme) => theme.palette.background.paper,
borderLeft: (theme) => `3px solid ${theme.palette[severity].light}`,
marginBottom: 1,
}}
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/UsersPage/UsersTable/EditRolesButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const classNames = {
paper: (css, theme) => css`
width: 360px;
margin-top: 8px;
background: ${theme.palette.background.paperLight};
background: ${theme.palette.background.paper};
`,
} satisfies Record<string, ClassName>;

Expand Down
6 changes: 3 additions & 3 deletions site/src/pages/UsersPage/UsersTable/UserRoleCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function UserRoleCell({
css={{
backgroundColor: hasOwnerRole
? theme.palette.info.dark
: theme.palette.background.paperLight,
: theme.palette.background.paper,
borderColor: hasOwnerRole
? theme.palette.info.light
: theme.palette.divider,
Expand All @@ -102,7 +102,7 @@ function OverflowRolePill({ roles }: OverflowRolePillProps) {
<Pill
text={`+${roles.length} more`}
css={{
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
borderColor: theme.palette.divider,
}}
/>
Expand Down Expand Up @@ -136,7 +136,7 @@ function OverflowRolePill({ roles }: OverflowRolePillProps) {
key={role.name}
text={role.display_name || role.name}
css={{
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
borderColor: theme.palette.divider,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const styles = {
workspaceInfo: (theme) => ({
display: "flex",
justifyContent: "space-between",
backgroundColor: theme.palette.background.paperLight,
border: `1px solid ${theme.palette.divider}`,
backgroundColor: theme.palette.divider,
borderRadius: 6,
padding: 16,
marginBottom: 20,
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/WorkspacesPage/WorkspacesEmpty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const WorkspacesEmpty = (props: {
color: "inherit",

"&:hover": {
backgroundColor: theme.palette.background.paperLight,
backgroundColor: theme.palette.background.paper,
},
})}
>
Expand Down