nexxtway/react-rainbow

View on GitHub
src/components/WeeklyCalendar/styled/arrowButton.js

Summary

Maintainability
A
2 hrs
Test Coverage
import styled from 'styled-components';
import ButtonIcon from '../../ButtonIcon';
import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs';

const StyledArrowButton = attachThemeAttrs(styled(ButtonIcon))`
    color: ${props => props.palette.brand.main};
    ${props =>
        props.disabled &&
        `
            color: ${props.palette.text.disabled};
        `};

    width: 2rem;
    height: 2rem;
    line-height: 2;

    svg {
        width: 0.7rem !important;
        height: 0.7rem !important;
    }
`;

export default StyledArrowButton;