Skip to content

Commit 5d15dee

Browse files
Oliver WilliamsOliver Williams
Oliver Williams
authored and
Oliver Williams
committed
use text-decoration-line instead of text-decoration
1 parent 429fe07 commit 5d15dee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/corePlugins.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1660,10 +1660,10 @@ export let corePlugins = {
16601660

16611661
textDecoration: ({ addUtilities }) => {
16621662
addUtilities({
1663-
'.underline': { 'text-decoration': 'underline' },
1664-
'.overline': { 'text-decoration': 'overline' },
1665-
'.line-through': { 'text-decoration': 'line-through' },
1666-
'.no-underline': { 'text-decoration': 'none' },
1663+
'.underline': { 'text-decoration-line': 'underline' },
1664+
'.overline': { 'text-decoration-line': 'overline' },
1665+
'.line-through': { 'text-decoration-line': 'line-through' },
1666+
'.no-underline': { 'text-decoration-line': 'none' },
16671667
})
16681668
},
16691669

tests/basic-usage.test.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@
805805
--tw-text-opacity: 0.1;
806806
}
807807
.underline {
808-
text-decoration: underline;
808+
text-decoration-line: underline;
809809
}
810810
.decoration-red-600 {
811811
text-decoration-color: #dc2626;

0 commit comments

Comments
 (0)