Fix ring fallback for older versions of Chrome
This commit is contained in:
parent
d0a1bd655b
commit
5223802f1a
1 changed files with 2 additions and 2 deletions
|
|
@ -5565,7 +5565,7 @@ export function createUtilities(theme: Theme) {
|
|||
|
||||
let defaultRingColor = theme.get(['--default-ring-color']) ?? 'currentcolor'
|
||||
function ringShadowValue(value: string) {
|
||||
return `var(--tw-ring-inset,) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${defaultRingColor})`
|
||||
return `var(--tw-ring-inset, ) 0 0 0 calc(${value} + var(--tw-ring-offset-width)) var(--tw-ring-color, ${defaultRingColor})`
|
||||
}
|
||||
utilities.functional('ring', (candidate) => {
|
||||
if (!candidate.value) {
|
||||
|
|
@ -5712,7 +5712,7 @@ export function createUtilities(theme: Theme) {
|
|||
])
|
||||
|
||||
let ringOffsetShadowValue =
|
||||
'var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)'
|
||||
'var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)'
|
||||
utilities.functional('ring-offset', (candidate) => {
|
||||
if (!candidate.value) return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue