Skip to content

Commit

Permalink
Fixing text-decoration on Button
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Apr 10, 2024
1 parent fd22d17 commit ca1aadb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions src/components/Button/styles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ const outlineStyle = {
} as const

export const buttonVariants = recipe({
base: [
atoms({
overflow: 'hidden',
whiteSpace: 'nowrap',
alignItems: 'center',
}),
{ border: 'none' },
],
base: atoms({
overflow: 'hidden',
whiteSpace: 'nowrap',
alignItems: 'center',
border: 'none',
textDecoration: 'none',
}),

variants: {
variant: {
Expand Down
1 change: 0 additions & 1 deletion src/css/global.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ globalStyle('*', {
margin: 0,
outline: 'unset',
padding: 0,
textDecoration: 'unset',
})

globalStyle('*, *::before, *::after', {
Expand Down
2 changes: 2 additions & 0 deletions src/css/sprinkles.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ const unresponsiveProperties = defineProperties({
fontFamily: vars.fonts,
textOverflow: ['ellipsis', 'clip'],
textTransform: ['capitalize', 'lowercase', 'uppercase'],
textDecoration: ['none', 'underline'],
userSelect: ['none', 'text', 'all', 'auto'],
whiteSpace: ['normal', 'nowrap', 'initial', 'inherit'],
wordBreak: ['break-word'],
Expand Down Expand Up @@ -179,6 +180,7 @@ const selectorProperties = defineProperties({
borderRightStyle: borderStyles,
borderTopColor: vars.colors,
borderTopStyle: borderStyles,
border: ['none'],
color: vars.colors,
cursor: ['default', 'pointer', 'text'],
opacity: vars.opacity,
Expand Down

0 comments on commit ca1aadb

Please sign in to comment.