Skip to content

Commit

Permalink
Merge pull request #861 from adevinta/860-add-default-box-shadow-to-s…
Browse files Browse the repository at this point in the history
…park-theme

fix: update TCV config file to include uppercased string edge cases
  • Loading branch information
acd02 authored Jun 2, 2023
2 parents fa8fb55 + 127eebe commit 9df3323
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tailwind.config.viewer.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const utils = {
return typeof value === 'string' || typeof value === 'number'
},
toKebabCase(value) {
if (value.toUpperCase() === value) return value.toLowerCase()
return value.replace(/[A-Z0-9]/g, e => `-${e.toLocaleLowerCase()}`)
},
doubleHyphensRegex: /(?<!var\()--+/g,
Expand Down

0 comments on commit 9df3323

Please sign in to comment.