All files / src/Divider styles.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25      37x                                          
import { cssClass } from '../styled';
import { palette, space, theme } from '../utils';
 
export const Divider = styleProps => cssClass`
    border: 1px solid ${palette('white800')(styleProps)};
    border-width: 0 0 1px 0;
    padding: 0;
    width: auto;
    height: 0;
 
    &[aria-orientation="vertical"] {
      border-width: 0 1px 0 0;
      width: 0;
      height: auto;
 
      & {
        ${theme(styleProps.themeKey, `css.vertical`)(styleProps)};
      }
    }
 
  & {
    ${theme(styleProps.themeKey, `css.root`)(styleProps)};
  }
`;