Skip to content

Commit

Permalink
Fix modal background colour (#252)
Browse files Browse the repository at this point in the history
The background colour of modals was previously not properly
standardised. This fixes that.
  • Loading branch information
Mrtenz authored Dec 8, 2023
1 parent 4cc1963 commit cc412cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/theme/components/modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ const { definePartsStyle, defineMultiStyleConfig } =
export const Modal = defineMultiStyleConfig({
baseStyle: definePartsStyle({
dialog: {
bg: 'chakra-body-bg',
backgroundColor: 'background.default',
},
}),

variants: {
minimal: definePartsStyle({
dialog: {
backgroundColor: 'background.default',
padding: '6',
background: 'chakra-body-bg',
borderRadius: '3xl',
},

Expand Down
4 changes: 2 additions & 2 deletions src/theme/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe('theme', () => {
"Modal": Object {
"baseStyle": Object {
"dialog": Object {
"bg": "chakra-body-bg",
"backgroundColor": "background.default",
},
},
"parts": Array [
Expand All @@ -188,7 +188,7 @@ describe('theme', () => {
"padding": "0",
},
"dialog": Object {
"background": "chakra-body-bg",
"backgroundColor": "background.default",
"borderRadius": "3xl",
"padding": "6",
},
Expand Down

0 comments on commit cc412cd

Please sign in to comment.