Skip to content

Commit

Permalink
style(dropdown): add display flex to dropdown trigger (#1934)
Browse files Browse the repository at this point in the history
* style(dropdown): add display flex to dropdown trigger

* style(dropdown): reorder css property
  • Loading branch information
pixelflips authored and kajabi-bot committed Aug 12, 2024
1 parent 5b4c735 commit 94ea6a9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions packages/sage-assets/lib/stylesheets/components/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ $-dropdown-trigger-dropdown-offset: rem(16px) + sage-spacing(xs);
max-height: $-dropdown-panel-max-height;
padding: sage-spacing(xs) 0;
border-radius: sage-border(radius-medium);

// adds a box shadow to the menu when it is scrollable
overflow-scrolling: touch;
background:
Expand All @@ -282,27 +282,27 @@ $-dropdown-trigger-dropdown-offset: rem(16px) + sage-spacing(xs);
white 30%,
rgba(255, 255, 255, 0)
) center top,

/* Shadow Cover BOTTOM */
linear-gradient(
rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0),
white 70%
) center bottom,

/* Shadow TOP */
radial-gradient(
farthest-side at 50% 0,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0)
) center top,

/* Shadow BOTTOM */
radial-gradient(
farthest-side at 50% 100%,
rgba(0, 0, 0, 0.2),
rgba(0, 0, 0, 0)
) center bottom;

background-repeat: no-repeat;
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
background-attachment: local, local, scroll, scroll;
Expand All @@ -322,7 +322,7 @@ $-dropdown-trigger-dropdown-offset: rem(16px) + sage-spacing(xs);
.sage-dropdown--page-size & {
min-width: 100%;
}

@media (max-height: $-dropdown-panel-max-height-breakpoint) {
max-height: $-dropdown-panel-max-height-small;
}
Expand Down Expand Up @@ -413,6 +413,7 @@ $-dropdown-trigger-dropdown-offset: rem(16px) + sage-spacing(xs);
}

.sage-dropdown__trigger {
display: flex;
width: 100%;
border-radius: inherit;

Expand Down

0 comments on commit 94ea6a9

Please sign in to comment.