Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit c8bb69d

Browse files
committed
chore: adjust bg & dimm transition to drawer overlay
1 parent bc40d23 commit c8bb69d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/containers/layout/GlobalLayout/CustomBg.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const ComstomBg: FC = () => {
7575
},
7676
}
7777

78-
const effect = effects.tg
78+
const effect = effects.tg6
7979

8080
// for linear/solid background colors
8181
if (isString(effect)) {

src/containers/tool/Drawer/Viewer/DesktopView.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ const DesktopView: FC<TProps> = ({
2929
articleNavi,
3030
children,
3131
}) => {
32+
const visible2 = false
33+
3234
return (
3335
<Fragment>
3436
<DrawerOverlay

src/containers/tool/Drawer/styles/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ export const DrawerOverlay = styled.div<TActive>`
2323
height: 100%;
2424
right: 0;
2525
top: 0;
26-
z-index: ${({ visible }) => (visible ? css.zIndex.drawerOverlay : -1)};
26+
z-index: ${css.zIndex.drawerOverlay};
2727
visibility: ${({ visible }) => (visible ? 'visible' : 'hidden')};
2828
background: ${({ visible }) => (visible ? theme('drawer.mask') : 'none')};
2929
opacity: ${({ visible }) => (visible ? 0.5 : 0)};
3030
31-
transition: visibility 0.3s linear, opacity 0.2s linear;
31+
transition: visibility 0.25s linear, opacity 0.2s linear,
32+
background 0.5s linear;
3233
`
3334
// see https://stackoverflow.com/questions/60079950/when-do-i-use-attrs-vs-passing-props-directly-with-styled-components
3435

0 commit comments

Comments
 (0)