Skip to content

Commit

Permalink
Add spacing scale to min-width, min-height, and max-width (#12300)
Browse files Browse the repository at this point in the history
* Add spacing scale to `min-width`, `min-height`, and `max-width`

* Update snapshots

* Update changelog
  • Loading branch information
thecrypticace committed Dec 5, 2023
1 parent 08916a5 commit 79e92de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- 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))
- Add spacing scale to `min-w-*`, `min-h-*`, and `max-w-*` utilities ([#12300](https://github.com/tailwindlabs/tailwindcss/pull/12300))

## [3.3.6] - 2023-12-04

Expand Down
14 changes: 7 additions & 7 deletions stubs/config.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,8 @@ module.exports = {
fit: 'fit-content',
}),
maxWidth: ({ theme, breakpoints }) => ({
...theme('spacing'),
none: 'none',
0: '0rem',
xs: '20rem',
sm: '24rem',
md: '28rem',
Expand All @@ -678,8 +678,8 @@ module.exports = {
prose: '65ch',
...breakpoints(theme('screens')),
}),
minHeight: {
0: '0px',
minHeight: ({ theme }) => ({
...theme('spacing'),
full: '100%',
screen: '100vh',
svh: '100svh',
Expand All @@ -688,14 +688,14 @@ module.exports = {
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
},
minWidth: {
0: '0px',
}),
minWidth: ({ theme }) => ({
...theme('spacing'),
full: '100%',
min: 'min-content',
max: 'max-content',
fit: 'fit-content',
},
}),
objectPosition: {
bottom: 'bottom',
center: 'center',
Expand Down

0 comments on commit 79e92de

Please sign in to comment.