diff --git a/components/DateSelector/DateSelector.jsx b/components/DateSelector/DateSelector.jsx index 9849eb50f..76332547c 100644 --- a/components/DateSelector/DateSelector.jsx +++ b/components/DateSelector/DateSelector.jsx @@ -8,8 +8,9 @@ import { updateStartDate as reduxUpdateStartDate, updateEndDate as reduxUpdateEndDate, } from '@reducers/filters'; -import Tooltip from '@mui/material/Tooltip'; +import Tooltip, { tooltipClasses } from '@mui/material/Tooltip'; import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined'; +import { styled } from '@mui/material/styles'; import options from './options'; import useStyles from './useStyles'; import DateRanges from './DateRanges'; @@ -38,13 +39,57 @@ function DateSelector({ const { option, selected } = classes; + const ArrowToolTip = styled(({ className }) => ( + +

+ + Currently, 311-Data loads only 311 service + request data from 2024 onward. + +

+

+ For updates on the release of available 311 + Data, please follow our + {` `} + + LinkedIn Page + + . +

+ + ) + } + > + +
+ ))(({ theme }) => ({ + [`& .${tooltipClasses.arrow}`]: { + '&::before': { + backgroundColor: theme.palette.common.white, + }, + }, + [`& .${tooltipClasses.tooltip}`]: { + backgroundColor: theme.palette.common.white, + color: theme.palette.common.black, + marginLeft: '-4px', + maxWidth: '275px', + padding: '5px', + }, + })); return ( <> Date Range  - - - + setExpanded(!expanded)} expanded={expanded}> diff --git a/components/DateSelector/useStyles.js b/components/DateSelector/useStyles.js index 9ad45069d..95583e65d 100644 --- a/components/DateSelector/useStyles.js +++ b/components/DateSelector/useStyles.js @@ -40,6 +40,9 @@ const useStyles = makeStyles(theme => ({ selected: { backgroundColor: `${theme.palette.selected.primary} !important`, }, + tooltipParagraph: { + margin: '1px', + }, })); export default useStyles;