Skip to content

Commit

Permalink
Remove invalid outline-hidden utility
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Dec 13, 2022
1 parent f194c5b commit 6fd1005
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-bottles-yell.md
@@ -0,0 +1,5 @@
---
'@twind/preset-tailwind': minor
---

Remove invalid `outline-hidden` utility
Expand Up @@ -8652,7 +8652,6 @@ exports[`enumerate 1`] = `
"outline-dashed",
"outline-dotted",
"outline-double",
"outline-hidden",
"outline-none",
"outline-black",
"outline-transparent",
Expand Down
Expand Up @@ -128,7 +128,6 @@ exports[`suggestAt html 1`] = `
"group-invalid:",
"cursor-no-drop",
"justify-end",
"outline-hidden",
"outline-indigo-50",
"outline-indigo-100",
"outline-indigo-200",
Expand Down Expand Up @@ -9146,7 +9145,6 @@ exports[`suggestAt html 5`] = `
"outline-dashed",
"outline-dotted",
"outline-double",
"outline-hidden",
"outline-none",
"outline-black",
"outline-transparent",
Expand Down
Expand Up @@ -1573,7 +1573,6 @@ exports[`suggest with single char input 1`] = `
"outline-dashed",
"outline-dotted",
"outline-double",
"outline-hidden",
"outline-none",
"outline-black",
"outline-transparent",
Expand Down
2 changes: 1 addition & 1 deletion packages/intellisense/src/suggest.test.ts
Expand Up @@ -16,7 +16,7 @@ const $ = (suggestions: Promise<Suggestion[]>) =>
suggestions.then((suggestions) => suggestions.map(({ value }) => value))

test('suggest with empty input', async () => {
await expect(intellisense.suggest('')).resolves.toHaveLength(14734)
await expect(intellisense.suggest('')).resolves.toHaveLength(14733)
})

test('suggest with single char input', async () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/preset-tailwind/src/rules.ts
Expand Up @@ -1027,7 +1027,7 @@ const rules: Rule<TailwindTheme>[] = [
'outline-offset': '2px',
}),
match('outline', { outlineStyle: 'solid' }),
match('outline-(dashed|dotted|double|hidden)', 'outlineStyle'),
match('outline-(dashed|dotted|double)', 'outlineStyle'),

// Outline Offset
matchTheme('-?(outline-offset)-' /*, 'outlineOffset'*/),
Expand Down

0 comments on commit 6fd1005

Please sign in to comment.