Skip to content

Commit

Permalink
Add border-hidden utility (#5485)
Browse files Browse the repository at this point in the history
Co-Authored-By: 藍 <[email protected]>

Co-authored-by: 藍 <[email protected]>
  • Loading branch information
adamwathan and kwaa committed Sep 12, 2021
1 parent b16eb20 commit fda68f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
})
}
Expand Down
3 changes: 3 additions & 0 deletions tests/basic-usage.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion tests/basic-usage.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<div class="border-black border-t-black border-r-black border-b-black border-l-black"></div>
<div class="border-opacity-10"></div>
<div class="rounded-md"></div>
<div class="border-solid"></div>
<div class="border-solid border-hidden"></div>
<div class="border"></div>
<div class="border-2 border-t border-b-4"></div>
<div class="shadow"></div>
Expand Down

0 comments on commit fda68f7

Please sign in to comment.