Skip to content

Commit

Permalink
add ring defaults
Browse files Browse the repository at this point in the history
Fixes #2911
  • Loading branch information
RobinMalfait committed Nov 30, 2020
1 parent ba753cf commit 554a2c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/ringOffsetColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function () {
return function ({ addUtilities, theme, variants }) {
const colors = flattenColorPalette(theme('ringOffsetColor'))
const utilities = _.fromPairs(
_.map(colors, (value, modifier) => {
_.map(_.omit(colors, 'DEFAULT'), (value, modifier) => {
return [
nameClass('ring-offset', modifier),
{
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ringOffsetWidth.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import nameClass from '../util/nameClass'
export default function () {
return function ({ addUtilities, theme, variants }) {
const utilities = _.fromPairs(
_.map(theme('ringOffsetWidth'), (value, modifier) => {
_.map(_.omit(theme('ringOffsetWidth'), 'DEFAULT'), (value, modifier) => {
return [
nameClass('ring-offset', modifier),
{
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/ringWidth.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export default function () {
{
'*': {
'--tw-ring-inset': 'var(--tw-empty,/*!*/ /*!*/)',
'--tw-ring-offset-width': '0px',
'--tw-ring-offset-color': '#fff',
'--tw-ring-offset-width': theme('ringOffsetWidth.DEFAULT', '0px'),
'--tw-ring-offset-color': theme('ringOffsetColor.DEFAULT', '#fff'),
'--tw-ring-color': ringColorDefault,
'--tw-ring-offset-shadow': '0 0 #0000',
'--tw-ring-shadow': '0 0 #0000',
Expand Down

0 comments on commit 554a2c1

Please sign in to comment.