Skip to content

Commit

Permalink
Turn off scroll anchoring for accordions
Browse files Browse the repository at this point in the history
New default behavior for scroll anchoring (rolled out in Chrome 84?) leads to unsightly/odd accordion interactions - see #31341
This rule suppresses this new behavior and reverts back to the old way.

See https://drafts.csswg.org/css-scroll-anchoring/
  • Loading branch information
patrickhlauke committed Jul 21, 2020
1 parent 2ec2e13 commit e7f0384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@
//

.accordion {
overflow-anchor: none;

> .card {
overflow: hidden;

Expand Down

0 comments on commit e7f0384

Please sign in to comment.