Skip to content

Commit

Permalink
Add subgrid utilities (#12298)
Browse files Browse the repository at this point in the history
* Add subgrid utilities

* Update CHANGELOG

---------

Co-authored-by: Adam Wathan <4323180+adamwathan@users.noreply.github.com>
  • Loading branch information
adamwathan and adamwathan committed Oct 26, 2023
1 parent e13ae7b commit 662905e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions stubs/config.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))',
Expand All @@ -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))',
Expand Down
4 changes: 4 additions & 0 deletions tests/plugins/__snapshots__/gridTemplateColumns.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
"
`;
4 changes: 4 additions & 0 deletions tests/plugins/__snapshots__/gridTemplateRows.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
"
`;

0 comments on commit 662905e

Please sign in to comment.