Skip to content

Commit

Permalink
fix: Aligns drawers slider to split panel and matches side nav animat…
Browse files Browse the repository at this point in the history
…ion (#1587)

Co-authored-by: Katie George <[email protected]>
  • Loading branch information
katiegeorge and Katie George authored Sep 27, 2023
1 parent 4859eb8 commit 6dbdef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app-layout/visual-refresh/drawers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
&.has-open-drawer {
background-color: awsui.$color-background-container-content;
box-shadow: awsui.$shadow-panel;
}

@include styles.with-motion {
transition: background-color awsui.$motion-duration-refresh-only-fast;
@include styles.with-motion {
transition: background-color awsui.$motion-duration-refresh-only-fast;
}
}

@include styles.media-breakpoint-up(styles.$breakpoint-x-small) {
Expand Down Expand Up @@ -156,7 +156,7 @@

> .drawer-slider {
grid-column: 1;
grid-row: 3;
grid-row: 1 / span 3;
height: 100%;
display: flex;
align-items: center;
Expand Down
3 changes: 2 additions & 1 deletion src/app-layout/visual-refresh/drawers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ function ActiveDrawer() {
id={activeDrawerId}
aria-hidden={isHidden}
aria-label={computedAriaLabels.content}
className={clsx(styles.drawer, sharedStyles['with-motion'], {
className={clsx(styles.drawer, {
[styles['is-drawer-open']]: activeDrawerId,
[styles.unfocusable]: isUnfocusable,
[testutilStyles['active-drawer']]: activeDrawerId,
[testutilStyles.tools]: isToolsDrawer,
[sharedStyles['with-motion']]: activeDrawerId,
})}
style={{
...(!isMobile && drawerSize && { [customCssProps.drawerSize]: `${size}px` }),
Expand Down

0 comments on commit 6dbdef1

Please sign in to comment.