mirror of
https://github.com/strapi/strapi.git
synced 2025-09-02 13:23:12 +00:00
Add hover design to controls
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
e7938eedc2
commit
091248d25a
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user