Skip to content

Commit

Permalink
fix: dialogs color pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
gozarman committed May 5, 2024
1 parent 4b7cacc commit 9145fb1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
7 changes: 7 additions & 0 deletions app/dashboard/chakra.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,13 @@ export const theme = extendTheme({
},
},
components: {
Modal: {
baseStyle: {
dialog: {
bg: "card-bg",
},
},
},
Badge: defineStyleConfig({
baseStyle: {
borderRadius: "5px",
Expand Down
3 changes: 0 additions & 3 deletions app/dashboard/src/components/common/user/UserDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,6 @@ export const UserDialog: FC<UserDialogProps> = () => {
<DrawerContent bg="main-bg">
<DrawerHeader pt={6}>
<HStack gap={2}>
{/* <Icon color="primary">
{isEditing ? <EditUserIcon color="white" /> : <AddUserIcon color="white" />}
</Icon> */}
<Text fontWeight="semibold" fontSize="lg">
{isEditing ? t("userDialog.editUserTitle") : t("createNewUser")}
</Text>
Expand Down
14 changes: 2 additions & 12 deletions app/dashboard/src/components/common/user/UsersTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,12 +564,7 @@ const ActionButtons: FC<ActionButtonsProps> = ({ user }) => {
<IconButton
p="0 !important"
aria-label="copy subscription link"
bg="transparent"
_dark={{
_hover: {
bg: "gray.700",
},
}}
variant="ghost"
size={{
base: "sm",
md: "md",
Expand All @@ -584,12 +579,7 @@ const ActionButtons: FC<ActionButtonsProps> = ({ user }) => {
<IconButton
p="0 !important"
aria-label="qr code"
bg="transparent"
_dark={{
_hover: {
bg: "gray.700",
},
}}
variant="ghost"
size={{
base: "sm",
md: "md",
Expand Down
8 changes: 8 additions & 0 deletions app/dashboard/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,11 @@ body,
.slick-next:before {
content: "" !important;
}

:root {
--modal-bg: var(--chakra-colors-chakra-card-bg) !important;
}

:root {
--main-bg-color: var(--chakra-colors-chakra-card-bg);
}

0 comments on commit 9145fb1

Please sign in to comment.