Minor design fixes in date picker (#10443)
- Fix the dimensions of the "Clear" button in the date picker - Improve the contrast of the hover state of the selected day ## Before https://github.com/user-attachments/assets/f15ee79b-8389-4e05-a7d7-cca23da64b7b ## After https://github.com/user-attachments/assets/9b391bea-bdc5-479c-8f71-b45ebcef4f66
This commit is contained in:
committed by
GitHub
parent
446924cf24
commit
dc7a9fc767
@ -19,9 +19,9 @@ import {
|
|||||||
VariableDateViewFilterValueDirection,
|
VariableDateViewFilterValueDirection,
|
||||||
VariableDateViewFilterValueUnit,
|
VariableDateViewFilterValueUnit,
|
||||||
} from '@/views/view-filter-value/utils/resolveDateViewFilterValue';
|
} from '@/views/view-filter-value/utils/resolveDateViewFilterValue';
|
||||||
|
import { t } from '@lingui/core/macro';
|
||||||
import { useContext } from 'react';
|
import { useContext } from 'react';
|
||||||
import 'react-datepicker/dist/react-datepicker.css';
|
import 'react-datepicker/dist/react-datepicker.css';
|
||||||
import { t } from '@lingui/core/macro';
|
|
||||||
|
|
||||||
export const MONTH_AND_YEAR_DROPDOWN_ID = 'date-picker-month-and-year-dropdown';
|
export const MONTH_AND_YEAR_DROPDOWN_ID = 'date-picker-month-and-year-dropdown';
|
||||||
export const MONTH_AND_YEAR_DROPDOWN_MONTH_SELECT_ID =
|
export const MONTH_AND_YEAR_DROPDOWN_MONTH_SELECT_ID =
|
||||||
@ -244,7 +244,11 @@ const StyledContainer = styled.div<{ calendarDisabled?: boolean }>`
|
|||||||
|
|
||||||
& .react-datepicker__day--selected {
|
& .react-datepicker__day--selected {
|
||||||
background-color: ${({ theme }) => theme.color.blue};
|
background-color: ${({ theme }) => theme.color.blue};
|
||||||
color: ${({ theme }) => theme.grayScale.gray0};
|
color: ${({ theme }) => theme.background.primary};
|
||||||
|
|
||||||
|
&.react-datepicker__day:hover {
|
||||||
|
color: ${({ theme }) => theme.background.primary};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
& .react-datepicker__day--outside-month {
|
& .react-datepicker__day--outside-month {
|
||||||
@ -261,8 +265,9 @@ const StyledContainer = styled.div<{ calendarDisabled?: boolean }>`
|
|||||||
`;
|
`;
|
||||||
|
|
||||||
const StyledButtonContainer = styled(StyledHoverableMenuItemBase)`
|
const StyledButtonContainer = styled(StyledHoverableMenuItemBase)`
|
||||||
height: ${({ theme }) => theme.spacing(4)};
|
box-sizing: border-box;
|
||||||
margin: ${({ theme }) => theme.spacing(2)};
|
height: 32px;
|
||||||
|
margin: ${({ theme }) => theme.spacing(1)};
|
||||||
padding: ${({ theme }) => theme.spacing(1)};
|
padding: ${({ theme }) => theme.spacing(1)};
|
||||||
width: auto;
|
width: auto;
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user