-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(css): Allow .no-underline to overwrite text-decoration
- Loading branch information
1 parent
f78117f
commit 437974b
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
modules/css/lib/tailwind/plugins/textDecoration/__tests__/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
describe('negativeDimensions', () => { | ||
describe('should contain', () => { | ||
const actual = tailwindPluginClasses('../index.js'); | ||
it.each([ | ||
[ | ||
'.underline', | ||
{ | ||
'--text-decoration-color': 'currentColor', | ||
textDecoration: 'underline var(--text-decoration-color)', | ||
}, | ||
], | ||
[ | ||
'.strike', | ||
{ | ||
'--text-decoration-color': 'currentColor', | ||
textDecoration: 'line-through var(--text-decoration-color)', | ||
}, | ||
], | ||
[ | ||
'.no-underline', | ||
{ | ||
textDecoration: 'none', | ||
}, | ||
], | ||
[ | ||
'.underline-red', | ||
{ | ||
'--text-decoration-color': '#e53e3e', | ||
}, | ||
], | ||
])('%s', async (key, value) => { | ||
expect(actual[key]).toEqual(value); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
modules/css/lib/tailwind/plugins/textDecoration/themes/textDecoration.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
module.exports = { | ||
none: 'none', | ||
strike: 'line-through', | ||
underline: 'underline', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters