disabled style was added
This commit is contained in:
parent
5e33ff1365
commit
30f7d0f61e
@ -5,26 +5,27 @@ export const DateItem = styled.button`
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
color: ${props => props.focused ? '#4781D1' : '#333'};
|
color: ${(props) =>
|
||||||
|
props.disabled ? "#A3A9AE" : props.focused ? "#4781D1" : "#333"};
|
||||||
|
|
||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
border-color: ${props => props.focused ? '#4781D1' : 'transparent'};
|
border-color: ${(props) => (props.focused ? "#4781D1" : "transparent")};
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
|
||||||
width: ${props => props.big ? '60px' : '40px'};
|
width: ${(props) => (props.big ? "60px" : "40px")};
|
||||||
height: ${props => props.big ? '60px' : '40px'};
|
height: ${(props) => (props.big ? "60px" : "40px")};
|
||||||
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
:hover {
|
:hover {
|
||||||
cursor: pointer;
|
cursor: ${(props) => (props.disabled ? "default" : "pointer")};
|
||||||
background: #f3f4f4;
|
background: ${(props) => (props.disabled ? "transparent" : "#f3f4f4")};
|
||||||
}
|
}
|
||||||
|
|
||||||
:focus{
|
:focus {
|
||||||
color: #4781D1;
|
color: #4781d1;
|
||||||
border: 2px solid #4781D1;
|
border: 2px solid #4781d1;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
Loading…
Reference in New Issue
Block a user