Add hover design to controls

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-03-25 15:13:45 +01:00
parent e7938eedc2
commit 091248d25a

View File

@ -1,3 +1,4 @@
/* eslint-disable indent */
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { themePropTypes } from 'strapi-helper-plugin';
@ -21,6 +22,31 @@ const Wrapper = styled.div`
`
transform: rotate(90deg)
`};
&:hover {
${({ type }) => {
if (type === 'trash-alt' || type === 'clear') {
return `
background-color: #FFA784;
border: 1px solid #FFA784;
color: #F64D0A;
`;
}
return `
background-color: #AED4FB;
border: 1px solid #AED4FB;
> svg {
> g, path {
fill: #007EFF;
}
}
color: #007EFF;
`;
}};
}
`;
Wrapper.defaultProps = {