Skip to content

Commit 06a7fa3

Browse files
committed
fix: add back layout classes that diseappeared in v2
1 parent e89b0e6 commit 06a7fa3

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.changeset/clever-frogs-breathe.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@obosbbl/grunnmuren-tailwind': patch
3+
---
4+
5+
Add back missing `.page-layout` and `.page-layout-main` classes that were removed by mistake in v2.
6+
This should fix layouts where the main page content isn't tall enough to push the footer down to the bottom
7+
of the screen.
8+

packages/tailwind/tailwind-base.cjs

+10-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ module.exports = (options = {}) => {
161161
...v1CompatibilityPlugins,
162162
require('@tailwindcss/typography'),
163163
require('tailwindcss-animate'),
164-
plugin(function ({ addBase, addComponents }) {
164+
plugin(function ({ addBase, addComponents, theme }) {
165165
addBase({
166166
html: {
167167
'@apply text-black antialiased font-normal font-text': {},
@@ -179,6 +179,15 @@ module.exports = (options = {}) => {
179179
});
180180

181181
addComponents({
182+
'.page-layout': {
183+
display: 'flex',
184+
flexDirection: 'column',
185+
minHeight: '100vh',
186+
},
187+
'.page-layout-main': {
188+
backgroundColor: theme('colors.white'),
189+
flexGrow: '1',
190+
},
182191
'.container': {
183192
width: '100%',
184193
paddingLeft: '1rem',

0 commit comments

Comments
 (0)