Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New filters map #5116

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ interface LocationAutocompleteProps {
id?: string;
variant?: "filled" | "standard" | "outlined" | undefined;
name: string;
size?: "small" | "medium";
onChange?(value: GeocodeResult | ""): void;
required?: string;
showFullDisplayName?: boolean;
Expand All @@ -36,6 +37,7 @@ export default function LocationAutocomplete({
variant = "standard",
onChange,
required,
size = "medium",
showFullDisplayName = false,
disableRegions = false,
}: LocationAutocompleteProps) {
Expand Down Expand Up @@ -113,6 +115,7 @@ export default function LocationAutocomplete({
: t("location_autocomplete.search_location_hint")
}
loading={isLoading}
size={size}
options={options || []}
open={isOpen}
onClose={() => setIsOpen(false)}
Expand Down
49 changes: 49 additions & 0 deletions app/web/features/search/AgeSlider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import Slider from '@material-ui/core/Slider';
import { withStyles } from "@material-ui/core";

export const AgeSlider = withStyles({
root: {
color: '#3a8589',
height: 3,
padding: '13px 0',
},
valueLabel: {
left: 'calc(-50% + 9px)',
top: '35px',
'& *': {
background: 'transparent',
color: '#000',
},
fontSize: '13px'
},
thumb: {
height: 27,
width: 27,
backgroundColor: '#fff',
border: '1px solid currentColor',
marginTop: -12,
marginLeft: -13,
boxShadow: '#ebebeb 0 2px 2px',
'&:focus, &:hover, &$active': {
boxShadow: '#ccc 0 2px 3px 1px',
},
'& .bar': {
// display: inline-block !important;
height: 9,
width: 1,
backgroundColor: 'currentColor',
marginLeft: 1,
marginRight: 1,
},
},
active: {},
track: {
height: 3,
},
rail: {
color: '#d8d8d8',
opacity: 1,
height: 3,
},
})(Slider);

Loading