Skip to content

Commit bbf3654

Browse files
authored
Merge pull request #121 from danpacho/120-bug-aspect-ratio-does-not-support-arbitrary-values
[fix] aspect ratio supports `arbitrary values`
2 parents 6753f42 + cc65361 commit bbf3654

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

packages/tailwindest/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# tailwindest
22

3+
## 2.3.6
4+
5+
### Patch Changes
6+
7+
- Fix aspect ratio arbitrary values support `aspect-[x/y]`
8+
39
## 2.3.5
410

511
### Patch Changes

packages/tailwindest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tailwindest",
3-
"version": "2.3.5",
3+
"version": "2.3.6",
44
"description": "typesafe, reusable tailwind",
55
"homepage": "https://tailwindest.vercel.app",
66
"author": "danpacho",

packages/tailwindest/src/types/tailwind/properties/layout/@aspect.ratio.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { PlugBase, Pluggable } from "../../../plugin"
22
import { TailwindArbitrary } from "../common/@arbitrary"
33

4-
type TailwindAspectRatio<Plug extends PlugBase = ""> =
5-
| "aspect-auto"
6-
| "aspect-square"
7-
| "aspect-video"
4+
type TailwindAspectRatioVariants<Plug extends PlugBase = ""> =
5+
| "auto"
6+
| "square"
7+
| "video"
88
| Pluggable<Plug>
99
| TailwindArbitrary
1010

11+
type TailwindAspectRatio<Plug extends PlugBase = ""> =
12+
`aspect-${TailwindAspectRatioVariants<Plug>}`
13+
1114
export type TailwindAspectRatioType<Plug extends PlugBase = ""> = {
1215
/**
1316
*@description Utilities for controlling the aspect ratio of an element.

0 commit comments

Comments
 (0)