Skip to content

Commit

Permalink
fix: add overflow rule tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Oct 10, 2022
1 parent 64036f1 commit e404e84
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/tricky-papayas-begin.md
@@ -0,0 +1,5 @@
---
'@twind/preset-tailwind': patch
---

add overflow rule tests
15 changes: 11 additions & 4 deletions packages/preset-tailwind/src/rules.test.json
Expand Up @@ -352,9 +352,19 @@
"clear-both": ".clear-both{clear:both}",
"overflow-auto": ".overflow-auto{overflow:auto}",
"overflow-hidden": ".overflow-hidden{overflow:hidden}",
"overflow-clip": ".overflow-clip{overflow:clip}",
"overflow-visible": ".overflow-visible{overflow:visible}",
"overflow-scroll": ".overflow-scroll{overflow:scroll}",
"overflow-clip": ".overflow-clip{overflow:clip}",
"overflow-x-auto": ".overflow-x-auto{overflow-x:auto}",
"overflow-x-hidden": ".overflow-x-hidden{overflow-x:hidden}",
"overflow-x-clip": ".overflow-x-clip{overflow-x:clip}",
"overflow-x-visible": ".overflow-x-visible{overflow-x:visible}",
"overflow-x-scroll": ".overflow-x-scroll{overflow-x:scroll}",
"overflow-y-auto": ".overflow-y-auto{overflow-y:auto}",
"overflow-y-hidden": ".overflow-y-hidden{overflow-y:hidden}",
"overflow-y-clip": ".overflow-y-clip{overflow-y:clip}",
"overflow-y-visible": ".overflow-y-visible{overflow-y:visible}",
"overflow-y-scroll": ".overflow-y-scroll{overflow-y:scroll}",
"text-ellipsis": ".text-ellipsis{text-overflow:ellipsis}",
"text-clip": ".text-clip{text-overflow:clip}",
"z-0": ".z-0{z-index:0}",
Expand Down Expand Up @@ -480,8 +490,6 @@
"whitespace-normal": ".whitespace-normal{white-space:normal}",
"whitespace-nowrap": ".whitespace-nowrap{white-space:nowrap}",
"whitespace-pre-wrap": ".whitespace-pre-wrap{white-space:pre-wrap}",
"overflow-x-hidden": ".overflow-x-hidden{overflow-x:hidden}",
"overflow-y-hidden": ".overflow-y-hidden{overflow-y:hidden}",
"col-span-full": ".col-span-full{grid-column:1 / -1}",
"col-span-1": ".col-span-1{grid-column:span 1 / span 1}",
"col-span-12": ".col-span-12{grid-column:span 12 / span 12}",
Expand Down Expand Up @@ -1858,7 +1866,6 @@
"break-after-left": ".break-after-left{break-after:left}",
"break-after-right": ".break-after-right{break-after:right}",
"break-after-column": ".break-after-column{break-after:column}",
"overflow-ellipsis": ".overflow-ellipsis{text-overflow:ellipsis}",
"scroll-auto": ".scroll-auto{scroll-behavior:auto}",
"scroll-smooth": ".scroll-smooth{scroll-behavior:smooth}",
"content-none": ".content-none{--tw-content:none;content:var(--tw-content)}",
Expand Down
1 change: 0 additions & 1 deletion packages/preset-tailwind/src/rules.ts
Expand Up @@ -442,7 +442,6 @@ const rules: Rule<TailwindTheme>[] = [
},
],
['text-(ellipsis|clip)', 'textOverflow'],
['overflow-(ellipsis)', 'textOverflow'], // Deprecated

// Vertical Alignment
['align-', 'verticalAlign'],
Expand Down

0 comments on commit e404e84

Please sign in to comment.