Skip to content

Commit

Permalink
Merge pull request #1821 from hackforla/1815-make-font-types-consistent
Browse files Browse the repository at this point in the history
Make font types in search and filters modal consistent
  • Loading branch information
Brandoncyu authored Sep 9, 2024
2 parents 022aeba + 6d9468b commit d68ff87
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
21 changes: 16 additions & 5 deletions components/DateSelector/DateSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import {
updateStartDate as reduxUpdateStartDate,
updateEndDate as reduxUpdateEndDate,
} from '@reducers/filters';
import Typography from '@mui/material/Typography';
import ArrowToolTip from '@components/common/ArrowToolTip';
import options from './options';
import useStyles from './useStyles';
import makeStyles from '@mui/styles/makeStyles';
import DateRanges from './DateRanges';

const dateFormat = 'YYYY-MM-DD';
Expand All @@ -21,6 +22,16 @@ function DateSelector({
updateEndDate,
}) {
const [expanded, setExpanded] = useState(false);
const useStyles = makeStyles(theme => ({
iconStyle: {
verticalAlign: 'middle',
},
header: {
fontSize: '12.47px',
fontWeight: theme.typography.fontWeightMedium,
marginBottom: '8px',
},
}));
const classes = useStyles();

const handleOptionSelect = optionDates => {
Expand All @@ -36,16 +47,16 @@ function DateSelector({
}, []);

const {
option, selected, label, iconStyle, tooltipParagraph,
option, selected, tooltipParagraph,
} = classes;

const linkedinPageLink = <a href="https://www.linkedin.com/company/hack-for-la/">LinkedIn Page</a>;

return (
<>
<span className={label}>
<Typography className={classes.header}>
Date Range&nbsp;
<ArrowToolTip iconStyle={iconStyle}>
<ArrowToolTip iconStyle={classes.iconStyle}>
<div>
<p className={tooltipParagraph}>
<strong>
Expand All @@ -62,7 +73,7 @@ function DateSelector({
</p>
</div>
</ArrowToolTip>
</span>
</Typography>
<SelectorBox onToggle={() => setExpanded(!expanded)} expanded={expanded}>
<SelectorBox.Display>
<div className={classes.selector}>
Expand Down
12 changes: 6 additions & 6 deletions components/main/Desktop/CouncilSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import makeStyles from '@mui/styles/makeStyles';
import Typography from '@mui/material/Typography';
import {
updateNcId,
updateSelectedCouncils,
Expand All @@ -15,11 +16,10 @@ import SelectedCouncils from './SelectedCouncils';
import CouncilsList from './CouncilsList';

const useStyles = makeStyles(theme => ({
label: {
display: 'inline-block',
font: theme.typography.b2,
marginBottom: '10px',
color: theme.palette.secondary.light,
header: {
fontSize: '12.47px',
fontWeight: theme.typography.fontWeightMedium,
marginBottom: '8px',
},
}));

Expand Down Expand Up @@ -89,7 +89,7 @@ function CouncilSelector({

return (
<>
<div className={classes.label}>Boundaries</div>
<Typography className={classes.header}>Boundaries</Typography>
<BoundariesSection>
<BoundariesSection.Display>
<SelectedCouncils items={selected} onDelete={debouncedHandleDelete} />
Expand Down

0 comments on commit d68ff87

Please sign in to comment.