From 5d15deeb4b4fb5cbee051934e2cc22499d2609ef Mon Sep 17 00:00:00 2001 From: Oliver Williams Date: Fri, 10 Dec 2021 19:28:12 +0000 Subject: [PATCH] use text-decoration-line instead of text-decoration --- src/corePlugins.js | 8 ++++---- tests/basic-usage.test.css | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/corePlugins.js b/src/corePlugins.js index 073a36f37b82..31a959fd9f43 100644 --- a/src/corePlugins.js +++ b/src/corePlugins.js @@ -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' }, }) }, diff --git a/tests/basic-usage.test.css b/tests/basic-usage.test.css index 07b6bbe824bb..edbd4f98741c 100644 --- a/tests/basic-usage.test.css +++ b/tests/basic-usage.test.css @@ -805,7 +805,7 @@ --tw-text-opacity: 0.1; } .underline { - text-decoration: underline; + text-decoration-line: underline; } .decoration-red-600 { text-decoration-color: #dc2626;