# All files / components/ToggleButton/styles ColorfulButton.js

0% Statements 0/12
0% Branches 0/10
0% Functions 0/2
0% Lines 0/4

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19

     import styled, { css } from 'styled-components';
    import get from 'extensions/themeGet';
    import StyledButton from './StyledToggleButton';

    export default styled(StyledButton)`
      ${({ selected, hovered }) =>
        selected
          ? css`
              background-color: ${hovered
                ? get('colors.negative.medium')
                : get('colors.positive.medium')};
              border-color: ${hovered
                ? get('colors.negative.medium')
                : get('colors.positive.medium')};
              color: ${get('colors.text.inverted')};
            `
          : ''};
    `;