Skip to content

Commit

Permalink
feat #113 - Revamp button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 17, 2020
1 parent 6adc873 commit f86150a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { generateButtonStyles } from './utils'
import { getDataTestAttributeProp } from '../utils'
import { LoadingOutlined } from '@ant-design/icons'
import { Skeleton } from '../Skeleton'
import { ThemeType } from '../assets/styles/themes'
import { Button as AntDButton, Spin } from 'antd'
import React, { FC, ReactNode } from 'react'
import { styleguide, ThemeType } from '../assets/styles'
Expand All @@ -25,6 +26,15 @@ const useStyles = createUseStyles({
}
})

const { dark, light } = ThemeType

const useStyles = createUseStyles({
'@global': {
[`.${dark} button`]: generateButtonStyles(dark),
button: generateButtonStyles(light)
}
})

export interface ButtonProps extends CommonComponentProps {
/**
* Required click handler.
Expand Down

0 comments on commit f86150a

Please sign in to comment.