File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/components/src/Divider Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 2525 */
2626
2727import styled from 'styled-components'
28+ import { space } from '@looker/design-tokens'
2829import { DividerBase , DividerProps } from './Divider'
2930
3031export interface DividerVerticalProps extends DividerProps {
@@ -43,10 +44,14 @@ export const DividerVertical = styled(DividerBase).attrs(
4344 return { 'data-testid' : 'DividerVertical' , height : props . height || '1rem' }
4445 }
4546) < DividerVerticalProps > `
47+ ${ space }
4648 display: inline-block;
47- margin-left: ${ ( { theme } ) => theme . space . xsmall } ;
48- margin-right: ${ ( { theme } ) => theme . space . xsmall } ;
4949 width: ${ ( { size } ) => size } ;
5050 ${ ( { height, stretch } ) =>
5151 stretch ? `align-self: stretch;` : `height: ${ height } ;` }
5252`
53+
54+ DividerVertical . defaultProps = {
55+ mx : 'xxsmall' ,
56+ my : 'xsmall' ,
57+ }
You can’t perform that action at this time.
0 commit comments