Skip to content

Commit

Permalink
🐛 fix(lists.scss): Fix bug where list dropdown menu flashes briefly d…
Browse files Browse the repository at this point in the history
…uring page load #207
  • Loading branch information
Spiderpig86 committed Dec 18, 2023
1 parent 856461d commit 2cbc17a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion dist/cirrus-all.css
Original file line number Diff line number Diff line change
Expand Up @@ -13521,6 +13521,7 @@ ul .divider::after {
top: 75%;
left: 0;
animation: slide-down var(--animation-duration) ease 1;
animation-play-state: paused;
background-color: var(--cirrus-bg);
border-radius: 0.2rem;
box-shadow: 0 1rem 3rem rgba(149, 157, 165, 0.3);
Expand Down Expand Up @@ -13551,13 +13552,13 @@ ul .divider::after {
.list-dropdown.shown .menu,
.list-dropdown .btn-dropdown:focus + .menu,
.list-dropdown .menu:hover {
animation-play-state: running; /* Resume animation on focus */
display: block;
opacity: 1;
top: 100%;
z-index: 100;
pointer-events: auto; /* Restore pointer events */
height: auto;
transition: all var(--animation-duration);
}

.list-dropdown .btn-group .btn-dropdown:nth-last-child(2) {
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -12100,6 +12100,7 @@ ul .divider::after {
top: 75%;
left: 0;
animation: slide-down var(--animation-duration) ease 1;
animation-play-state: paused;
background-color: var(--cirrus-bg);
border-radius: 0.2rem;
box-shadow: 0 1rem 3rem rgba(149, 157, 165, 0.3);
Expand Down Expand Up @@ -12130,13 +12131,13 @@ ul .divider::after {
.list-dropdown.shown .menu,
.list-dropdown .btn-dropdown:focus + .menu,
.list-dropdown .menu:hover {
animation-play-state: running; /* Resume animation on focus */
display: block;
opacity: 1;
top: 100%;
z-index: 100;
pointer-events: auto; /* Restore pointer events */
height: auto;
transition: all var(--animation-duration);
}

.list-dropdown .btn-group .btn-dropdown:nth-last-child(2) {
Expand Down
6 changes: 5 additions & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -12101,6 +12101,7 @@ ul .divider::after {
top: 75%;
left: 0;
animation: slide-down var(--animation-duration) ease 1;
animation-play-state: paused;
background-color: var(--cirrus-bg);
border-radius: 0.2rem;
box-shadow: 0 1rem 3rem rgba(149, 157, 165, 0.3);
Expand Down Expand Up @@ -12131,13 +12132,13 @@ ul .divider::after {
.list-dropdown.shown .menu,
.list-dropdown .btn-dropdown:focus + .menu,
.list-dropdown .menu:hover {
animation-play-state: running; /* Resume animation on focus */
display: block;
opacity: 1;
top: 100%;
z-index: 100;
pointer-events: auto; /* Restore pointer events */
height: auto;
transition: all var(--animation-duration);
}

.list-dropdown .btn-group .btn-dropdown:nth-last-child(2) {
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/components/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
top: 75%;
left: 0;
animation: slide-down var(--animation-duration) ease 1;
animation-play-state: paused;
background-color: var(--cirrus-bg);
border-radius: 0.2rem;
box-shadow: 0 1rem 3rem rgba(149, 157, 165, 0.3);
Expand Down Expand Up @@ -194,13 +195,13 @@
&.shown .menu,
.btn-dropdown:focus + .menu,
.menu:hover {
animation-play-state: running; /* Resume animation on focus */
display: block;
opacity: 1;
top: 100%;
z-index: 100;
pointer-events: auto; /* Restore pointer events */
height: auto;
transition: all var(--animation-duration);
}

.btn-group .btn-dropdown:nth-last-child(2) {
Expand Down

0 comments on commit 2cbc17a

Please sign in to comment.