From fda68f71380a8763037048a23d126d3e2b971dc2 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sun, 12 Sep 2021 16:18:17 -0400 Subject: [PATCH] Add `border-hidden` utility (#5485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: 藍 <50108258+kwaa@users.noreply.github.com> Co-authored-by: 藍 <50108258+kwaa@users.noreply.github.com> --- src/corePlugins.js | 1 + tests/basic-usage.test.css | 3 +++ tests/basic-usage.test.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 26bdb4da1831..f1f319411f8b 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -1179,6 +1179,7 @@ export let borderStyle = ({ addUtilities }) => { '.border-dashed': { 'border-style': 'dashed' }, '.border-dotted': { 'border-style': 'dotted' }, '.border-double': { 'border-style': 'double' }, + '.border-hidden': { 'border-style': 'hidden' }, '.border-none': { 'border-style': 'none' }, }) } diff --git a/tests/basic-usage.test.css b/tests/basic-usage.test.css index 06f7b0306365..86f5da88ab89 100644 --- a/tests/basic-usage.test.css +++ b/tests/basic-usage.test.css @@ -461,6 +461,9 @@ .border-solid { border-style: solid; } +.border-hidden { + border-style: hidden; +} .border-black { --tw-border-opacity: 1; border-color: rgb(0 0 0 / var(--tw-border-opacity)); diff --git a/tests/basic-usage.test.html b/tests/basic-usage.test.html index 69ce7b89342a..539fc1a51a23 100644 --- a/tests/basic-usage.test.html +++ b/tests/basic-usage.test.html @@ -28,7 +28,7 @@
-
+