Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge b1be8d1 into 7c6fc5d
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrenceLJones committed Jul 19, 2019
2 parents 7c6fc5d + b1be8d1 commit 247c99d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
14 changes: 6 additions & 8 deletions src/components/Condition/Condition.Operator.tsx
Expand Up @@ -4,7 +4,7 @@ import Text from '../Text'
import { classNames } from '../../utilities/classNames'
import { COMPONENT_KEY } from './Condition.utils'
import { ConditionOperatorProps } from './Condition.types'
import { OperatorWrapperUI, OperatorUI } from './styles/Condition.css'
import { OperatorUI } from './styles/Condition.css'

export const Operator = (props: ConditionOperatorProps) => {
const { className, isBorderless, type, ...rest } = props
Expand All @@ -18,13 +18,11 @@ export const Operator = (props: ConditionOperatorProps) => {
)

return (
<OperatorWrapperUI className="c-ConditionOperatorWrapper">
<OperatorUI {...rest} className={componentClassName}>
<Text block lineHeightReset size="11">
{label}
</Text>
</OperatorUI>
</OperatorWrapperUI>
<OperatorUI {...rest} className={componentClassName}>
<Text block lineHeightReset size="11">
{label}
</Text>
</OperatorUI>
)
}

Expand Down
6 changes: 1 addition & 5 deletions src/components/Condition/styles/Condition.css.ts
Expand Up @@ -33,18 +33,14 @@ export const OptionsWrapperUI = styled(Flexy.Item)`

export const ContentWrapperUI = styled(Flexy.Block)``

export const OperatorWrapperUI = styled('div')`
${baseStyles};
margin: 5px 0;
`

export const OperatorUI = styled('div')`
${baseStyles};
background: ${getColor('grey.600')};
border-radius: ${config.operatorBorderWidth};
box-shadow: 0 0 0 ${config.operatorBorderWidth} white;
color: white;
display: inline-block;
margin: 5px 0;
padding: 3px 5px;
text-transform: uppercase;
line-height: 1;
Expand Down

0 comments on commit 247c99d

Please sign in to comment.