Skip to content
Merged
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
24 changes: 21 additions & 3 deletions frontends/main/src/page-components/SearchDisplay/SearchDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ const FacetStyles = styled.div`

i {
color: ${({ theme }) => theme.custom.colors.silverGrayLight};

svg {
display: block;
}
}

&:hover i {
Expand Down Expand Up @@ -222,6 +226,7 @@ const FacetStyles = styled.div`

.input-wrapper {
position: relative;
margin-bottom: 10px;

.input-postfix-icon {
display: none;
Expand All @@ -230,12 +235,25 @@ const FacetStyles = styled.div`
.input-postfix-button {
cursor: pointer;
position: absolute;
right: 5px;
top: 50%;
transform: translateY(-50%);
border: none;
background: none;
padding: 0;
width: 20px;
height: 20px;
right: 7px;

svg {
color: ${({ theme }) => theme.custom.colors.silverGrayLight};
width: 100%;
height: 100%;
display: block;

:hover {
color: ${({ theme }) => theme.custom.colors.darkGray2};
}
}

span {
color: ${({ theme }) => theme.palette.text.secondary};
Expand All @@ -246,9 +264,9 @@ const FacetStyles = styled.div`

input.facet-filter {
background-color: initial;
padding: 10px;
padding: 10px 26px 10px 10px;
margin-top: 0;
margin-bottom: 10px;
margin-bottom: 0;
width: 100%;
}

Expand Down
2 changes: 1 addition & 1 deletion frontends/ol-components/src/components/Alert/Alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { theme } from "../ThemeProvider/ThemeProvider"
import type { AlertProps as MuiAlertProps } from "@mui/material/Alert"

type Colors = {
[Severity in AlertColor]: string
[_Severity in AlertColor]: string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity, what was this for?

Same question below for _key

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If was seeing an eslint error on the mapped type - a bug perhaps:

'Severity' is defined but never used. Allowed unused vars must match /^_/u.eslint[@typescript-eslint/no-unused-vars](https://typescript-eslint.io/rules/no-unused-vars)

}

const COLORS: Colors = {
Expand Down
2 changes: 1 addition & 1 deletion frontends/ol-components/src/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const baseInputStyles = (theme: Theme) => ({
type CustomInputProps = { responsive?: true }
const noForward = Object.keys({
responsive: true,
} satisfies { [key in keyof CustomInputProps]: boolean })
} satisfies { [_key in keyof CustomInputProps]: boolean })

const Input = styled(InputBase, {
shouldForwardProp: (prop) => !noForward.includes(prop),
Expand Down
Loading
Loading