Skip to content

Commit

Permalink
refactor(tag): remove appearance
Browse files Browse the repository at this point in the history
In favor of future simplification of style states with isPressed and
themeName handling the same concepts.

BREAKING CHANGE remove appearance prop
  • Loading branch information
jaketrent committed May 7, 2019
1 parent 5b63b79 commit 6500825
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 354 deletions.
13 changes: 2 additions & 11 deletions packages/tag/src/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default {
fontWeight: core.type.fontWeightMedium,
textDecoration: 'none',
border: 'none',
color: core.colors.bone,
backgroundColor: core.colors.gray03,
transition: `background-color ${core.motion.speedXFast} linear, color ${
core.motion.speedXFast
} linear`
Expand Down Expand Up @@ -79,17 +81,6 @@ export default {
}
},

[`${base}--appearance-${vars.appearances.accent}`]: accent,
[`${base}--appearance-${vars.appearances.basic}`]: {
color: core.colors.bone,
backgroundColor: core.colors.gray03
},
[`${base}--appearance-${vars.appearances.bright}`]: {
color: core.colors.gray06,
backgroundColor: core.colors.white,
border: `1px solid ${core.colors.gray02}`
},

[`${base}--size-${vars.sizes.small}`]: {
height: '24px',
padding: `0 ${core.layout.spacingSmall}`,
Expand Down
Loading

0 comments on commit 6500825

Please sign in to comment.