feat: avoid layout shift in init

This commit is contained in:
alistair3149 2024-05-25 15:29:56 -04:00
parent b4b66b8172
commit 9162321c3c
No known key found for this signature in database

View file

@ -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