Skip to content

Commit

Permalink
CSS hack to fix scroll anchoring (#1183)
Browse files Browse the repository at this point in the history
Disable explicit `height` setting for the top-level div, which breaks scroll
anchoring
  • Loading branch information
richvdh committed Aug 1, 2022
1 parent 3dc3150 commit 91aebd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/scss/custom.scss
Expand Up @@ -29,6 +29,12 @@ Custom SCSS for the Matrix spec
*/
@import "syntax.scss";

/* Workaround for https://github.com/google/docsy/issues/1116:
* fix scroll-anchoring */
.td-outer {
height: auto;
}

/* Overrides for the navbar */
.td-navbar {
box-shadow: 0px 0px 8px rgba(179, 179, 179, 0.25);
Expand Down

0 comments on commit 91aebd6

Please sign in to comment.