Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use text-decoration-line instead of text-decoration
  • Loading branch information
Oliver Williams authored and Oliver Williams committed Dec 10, 2021
commit 5d15deeb4b4fb5cbee051934e2cc22499d2609ef
8 changes: 4 additions & 4 deletions src/corePlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -1660,10 +1660,10 @@ export let corePlugins = {

textDecoration: ({ addUtilities }) => {
addUtilities({
'.underline': { 'text-decoration': 'underline' },
'.overline': { 'text-decoration': 'overline' },
'.line-through': { 'text-decoration': 'line-through' },
'.no-underline': { 'text-decoration': 'none' },
'.underline': { 'text-decoration-line': 'underline' },
'.overline': { 'text-decoration-line': 'overline' },
'.line-through': { 'text-decoration-line': 'line-through' },
'.no-underline': { 'text-decoration-line': 'none' },
})
},

Expand Down
2 changes: 1 addition & 1 deletion tests/basic-usage.test.css
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@
--tw-text-opacity: 0.1;
}
.underline {
text-decoration: underline;
text-decoration-line: underline;
}
.decoration-red-600 {
text-decoration-color: #dc2626;
Expand Down