Skip to content

Commit

Permalink
feat #114 - Remove border from styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-dassana committed Oct 15, 2020
1 parent 55f9666 commit 737a783
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/components/Input/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from 'components/assets/styles/styleguide'
import { themedStyles, ThemeType } from 'components/assets/styles/themes'

const { border, borderRadius } = styleguide
const { borderRadius } = styleguide

export const generateInputStyles = (themeType: ThemeType) => {
const { base, disabled, error, focus, hover, placeholder } = themedStyles[
Expand All @@ -23,7 +23,6 @@ export const generateInputStyles = (themeType: ThemeType) => {
'&:hover': {
borderColor: hover.borderColor
},

backgroundColor: base.backgroundColor,
borderColor: base.borderColor,
borderRadius,
Expand All @@ -46,8 +45,7 @@ export const generateInputSkeletonStyles = (themeType: ThemeType) => {
const { loading } = themedStyles[themeType]

return {
border,
borderColor: loading.borderColor,
border: `1px solid ${loading.borderColor}`,
borderRadius,
padding: '6px 14px'
}
Expand Down
2 changes: 0 additions & 2 deletions src/components/assets/styles/styleguide.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import colors from './colors'

const border = '1px solid'
const borderRadius = 4

export const defaultFieldWidth = '300px'
Expand All @@ -18,7 +17,6 @@ export const fieldErrorStyles = {
}

export const styleguide = {
border,
borderRadius,
colors,
font: {
Expand Down

0 comments on commit 737a783

Please sign in to comment.