Aliquid amet deserunt earum!
++ Aliquid amet deserunt earum! +
Aliquid amet deserunt earum!
++ Aliquid amet deserunt earum! +
Aliquid amet deserunt earum!
-Aliquid amet deserunt earum!
@@ -95,6 +95,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -103,20 +107,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { diff --git a/docs/data/base/components/modal/ModalUnstyled.tsx b/docs/data/base/components/modal/ModalUnstyled.tsx index fcc7dda30cc5fa..053da92f2e9118 100644 --- a/docs/data/base/components/modal/ModalUnstyled.tsx +++ b/docs/data/base/components/modal/ModalUnstyled.tsx @@ -21,9 +21,9 @@ export default function ModalUnstyled() { slots={{ backdrop: StyledBackdrop }} >Aliquid amet deserunt earum!
@@ -92,6 +92,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -100,20 +104,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { diff --git a/docs/data/base/components/modal/NestedModal.js b/docs/data/base/components/modal/NestedModal.js index 381b204959e057..bb928c4f1ea5eb 100644 --- a/docs/data/base/components/modal/NestedModal.js +++ b/docs/data/base/components/modal/NestedModal.js @@ -25,9 +25,9 @@ export default function NestedModal() { slots={{ backdrop: StyledBackdrop }} >Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
@@ -58,9 +58,9 @@ function ChildModal() { slots={{ backdrop: StyledBackdrop }} >Lorem ipsum, dolor sit amet consectetur adipisicing elit.
@@ -136,6 +136,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -144,20 +148,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { @@ -190,12 +188,11 @@ const TriggerButton = styled(Button)( border-color: ${theme.palette.mode === 'dark' ? grey[600] : grey[300]}; } - &.active { - background-color: ${blue[700]}; - box-shadow: none; + &:active { + background: ${theme.palette.mode === 'dark' ? grey[700] : grey[100]}; } - &.focusVisible { + &:focus-visible { box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[300] : blue[200]}; outline: none; } @@ -224,7 +221,8 @@ const ModalButton = styled(Button)( } &:active { - background: ${theme.palette.mode === 'dark' ? grey[700] : grey[100]}; + background-color: ${blue[700]}; + box-shadow: none; } &:focus-visible { @@ -232,7 +230,7 @@ const ModalButton = styled(Button)( outline: none; } - &.disabled { + &:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; diff --git a/docs/data/base/components/modal/NestedModal.tsx b/docs/data/base/components/modal/NestedModal.tsx index 9595aaff2f925d..2db265d191b9a3 100644 --- a/docs/data/base/components/modal/NestedModal.tsx +++ b/docs/data/base/components/modal/NestedModal.tsx @@ -24,9 +24,9 @@ export default function NestedModal() { slots={{ backdrop: StyledBackdrop }} >Duis mollis, est non commodo luctus, nisi erat porttitor ligula.
@@ -57,9 +57,9 @@ function ChildModal() { slots={{ backdrop: StyledBackdrop }} >Lorem ipsum, dolor sit amet consectetur adipisicing elit.
@@ -133,6 +133,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -141,20 +145,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { @@ -187,12 +185,11 @@ const TriggerButton = styled(Button)( border-color: ${theme.palette.mode === 'dark' ? grey[600] : grey[300]}; } - &.active { - background-color: ${blue[700]}; - box-shadow: none; + &:active { + background: ${theme.palette.mode === 'dark' ? grey[700] : grey[100]}; } - &.focusVisible { + &:focus-visible { box-shadow: 0 0 0 4px ${theme.palette.mode === 'dark' ? blue[300] : blue[200]}; outline: none; } @@ -221,7 +218,8 @@ const ModalButton = styled(Button)( } &:active { - background: ${theme.palette.mode === 'dark' ? grey[700] : grey[100]}; + background-color: ${blue[700]}; + box-shadow: none; } &:focus-visible { @@ -229,7 +227,7 @@ const ModalButton = styled(Button)( outline: none; } - &.disabled { + &:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; diff --git a/docs/data/base/components/modal/ServerModal.js b/docs/data/base/components/modal/ServerModal.js index c9ea2ba26cc30e..a2adcdf71cad97 100644 --- a/docs/data/base/components/modal/ServerModal.js +++ b/docs/data/base/components/modal/ServerModal.js @@ -30,9 +30,9 @@ export default function ServerModal() { container={() => rootRef.current} >Lorem ipsum, dolor sit amet consectetur adipisicing elit.
@@ -98,6 +98,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -106,20 +110,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { diff --git a/docs/data/base/components/modal/TransitionsModal.tsx b/docs/data/base/components/modal/TransitionsModal.tsx index 391e87bd23a281..dad0ab9bb8b4ba 100644 --- a/docs/data/base/components/modal/TransitionsModal.tsx +++ b/docs/data/base/components/modal/TransitionsModal.tsx @@ -22,9 +22,9 @@ export default function TransitionsModal() { >Lorem ipsum, dolor sit amet consectetur adipisicing elit.
@@ -95,6 +95,10 @@ const style = { const ModalContent = styled(Box)( ({ theme }) => ` + font-family: IBM Plex Sans, sans-serif; + font-weight: 500; + text-align: start; + position: relative; display: flex; flex-direction: column; gap: 8px; @@ -103,20 +107,14 @@ const ModalContent = styled(Box)( border-radius: 8px; border: 1px solid ${theme.palette.mode === 'dark' ? grey[700] : grey[200]}; box-shadow: 0px 4px 12px ${ - theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.50)' : 'rgba(0,0,0, 0.20)' + theme.palette.mode === 'dark' ? 'rgba(0,0,0, 0.5)' : 'rgba(0,0,0, 0.20)' }; - padding: 1rem; + padding: 16px; color: ${theme.palette.mode === 'dark' ? grey[50] : grey[900]}; - font-family: IBM Plex Sans, sans-serif; - font-weight: 500; - text-align: start; - position: relative; - & .modal-title { margin: 0; line-height: 1.5rem; - margin-right: 0.5rem; } & .modal-description { diff --git a/docs/data/base/components/modal/UseModal.js b/docs/data/base/components/modal/UseModal.js index 722b332f46dea0..8746d9d6569bd8 100644 --- a/docs/data/base/components/modal/UseModal.js +++ b/docs/data/base/components/modal/UseModal.js @@ -26,9 +26,9 @@ export default function UseModal() { >