Skip to content

Commit

Permalink
feat: avoid layout shift in init
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair3149 committed May 25, 2024
1 parent b4b66b8 commit 9162321
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/ext.tabberNeue.init/ext.tabberNeue.init.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
}
}

/**
* Avoid layout shift by assigning the grid property early on
* Because display:block does not take into account of bottom margin of the content
*/
.tabber__section {
display: grid;
}

/**
* Hide all other panels
* All panels are stacked vertically initially
Expand Down

0 comments on commit 9162321

Please sign in to comment.