Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 77cf600

Browse files
committed
Fix .ring bugs
1 parent 63a0e75 commit 77cf600

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/corePlugins/ringColor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ module.exports = function ({ matchUtilities, jit: { theme } }) {
99

1010
matchUtilities({
1111
ring: (modifier, { theme }) => {
12+
if (modifier === 'DEFAULT') {
13+
return []
14+
}
15+
1216
let value = asColor(modifier, colorPalette)
1317

1418
if (value === undefined) {

src/corePlugins/ringWidth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function safeCall(callback, defaultValue) {
1515
module.exports = function ({ matchUtilities, addUtilities, jit: { theme } }) {
1616
let ringColorDefault = (([r, g, b]) => {
1717
return `rgba(${r}, ${g}, ${b}, ${dlv(theme, ['ringOpacity', 'DEFAULT'], '0.5')})`
18-
})(safeCall(() => toRgba(dlv(theme, ['ringOpacity', 'DEFAULT'])), ['147', '197', '253']))
18+
})(safeCall(() => toRgba(dlv(theme, ['ringColor', 'DEFAULT'])), ['147', '197', '253']))
1919

2020
let ringReset = {
2121
'*': {

0 commit comments

Comments
 (0)