joyent-portal/packages/ui-toolkit/src/tooltip/button.js

44 lines
839 B
JavaScript
Raw Normal View History

2017-05-30 16:06:18 +03:00
import React from 'react';
import styled from 'styled-components';
import unitcalc from 'unitcalc';
import theme from '../theme';
import Button from '../button';
const StyledButton = styled(Button)`
width: 100%;
padding: ${unitcalc(1)} ${unitcalc(3)};
background-color: ${theme.white};
color: ${theme.secondary};
text-align: left;
border: none;
box-shadow: none;
&:focus {
background-color: ${theme.white};
color: ${theme.primary};
border: none;
}
&:hover {
background-color: ${theme.white};
color: ${theme.primary};
border: none;
}
&:active,
&:active:hover,
&:active:focus {
background-color: ${theme.white};
color: ${theme.primary};
border: none;
}
`;
2017-05-31 22:17:12 +03:00
const TooltipButton = props => (
2017-05-30 16:06:18 +03:00
<li>
<StyledButton {...props} />
</li>
);
export default TooltipButton;