Add subgrid utilities (#12298)

* Add subgrid utilities

* Update CHANGELOG

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
This commit is contained in:
Adam Wathan 2023-10-26 12:52:39 -04:00 • committed by GitHub
parent e13ae7b725
commit 662905e5e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View file

@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Support loading plugins by package / file name ([#12087](https://github.com/tailwindlabs/tailwindcss/pull/12087))
- Increase default values for `grid-rows-*` utilities from 1–6 to 1–12 ([#12180](https://github.com/tailwindlabs/tailwindcss/pull/12180))
- Add `size-*` utilities ([#12287](https://github.com/tailwindlabs/tailwindcss/pull/12287))
- Add utilities for CSS subgrid ([#12298](https://github.com/tailwindlabs/tailwindcss/pull/12298))
### Changed

View file

@ -486,6 +486,7 @@ module.exports = {
},
gridTemplateColumns: {
none: 'none',
subgrid: 'subgrid',
1: 'repeat(1, minmax(0, 1fr))',
2: 'repeat(2, minmax(0, 1fr))',
3: 'repeat(3, minmax(0, 1fr))',
@ -501,6 +502,7 @@ module.exports = {
},
gridTemplateRows: {
none: 'none',
subgrid: 'subgrid',
1: 'repeat(1, minmax(0, 1fr))',
2: 'repeat(2, minmax(0, 1fr))',
3: 'repeat(3, minmax(0, 1fr))',

View file

@ -61,5 +61,9 @@ exports[`should test the 'gridTemplateColumns' plugin 1`] = `
.grid-cols-none {
grid-template-columns: none;
}
.grid-cols-subgrid {
grid-template-columns: subgrid;
}
"
`;

View file

@ -61,5 +61,9 @@ exports[`should test the 'gridTemplateRows' plugin 1`] = `
.grid-rows-none {
grid-template-rows: none;
}
.grid-rows-subgrid {
grid-template-rows: subgrid;
}
"
`;