Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 3 additions & 16 deletions app/assets/stylesheets/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -475,25 +475,15 @@ input:where([data-behavior='otp_input']) {
}

.dropdown-button__menu {
width: 100%;
width: 100% !important;

position: absolute;
position: absolute !important;
top: 110%;
left: 0px;

border-radius: 0.75rem;

background-color: $smoke;

[data-dark='true'] & {
background-color: $darker;
}

display: none;
opacity: 0;

z-index: 10;

margin-top: 8px;
}

Expand All @@ -511,17 +501,14 @@ input:where([data-behavior='otp_input']) {
}

.dropdown-button__menu label {
padding: 0.5rem 1rem;
padding: 0.75rem 0.75rem !important;
border-radius: inherit;
}

.dropdown-button__menu label p {
margin: 3px 0px;
}

.dropdown-button__menu label:hover {
background-color: color-mix(in srgb, $slate 20%, transparent);
}
.dropdown-button__menu input:checked + label {
background-color: color-mix(in srgb, $green-dark 20%, transparent);
}
Expand Down
12 changes: 8 additions & 4 deletions app/assets/stylesheets/components/_menus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
}
}

.menu__content {
.menu__content,
.dropdown-button__menu {
display: none;
cursor: initial;
min-width: 14rem;
Expand Down Expand Up @@ -154,9 +155,12 @@
}

.menu__content > a,
.menu__action {
display: flex;
align-items: center;
.menu__action,
.dropdown-button__menu label {
&:not(.dropdown-button__menu label) {
display: flex;
align-items: center;
}
font-weight: 500;
line-height: 1.5;
padding: 0.75rem 0.5rem;
Expand Down