diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts index 7586394e18..41a457ead5 100644 --- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts +++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.styles.ts @@ -1,17 +1,24 @@ -import { makeStyles } from 'tss-react/mui'; +import { styled } from '@mui/material'; -export const useStyles = makeStyles()((theme) => ({ - container: { - display: 'inline-block', - wordBreak: 'break-word', - }, - value: { - lineHeight: 1.33, - fontSize: theme.fontSizes.smallBody, - }, - description: { - lineHeight: 1.33, - fontSize: theme.fontSizes.smallerBody, - color: theme.palette.action.active, +export const StyledContainer = styled('div')(({ theme }) => ({ + display: 'inline-block', + wordBreak: 'break-word', + padding: theme.spacing(0.5, 1), + background: theme.palette.common.white, + border: `1px solid ${theme.palette.divider}`, + borderRadius: theme.shape.borderRadius, + + '&:hover': { + border: `2px solid ${theme.palette.primary.main}`, }, })); + +export const StyledValue = styled('div')(({ theme }) => ({ + lineHeight: 1.33, + fontSize: theme.fontSizes.smallBody, +})); +export const StyledDescription = styled('div')(({ theme }) => ({ + lineHeight: 1.33, + fontSize: theme.fontSizes.smallerBody, + color: theme.palette.action.active, +})); diff --git a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.tsx b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.tsx index 7ab9361370..b02bdca279 100644 --- a/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.tsx +++ b/frontend/src/component/common/NewConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditBody/LegalValueLabel/LegalValueLabel.tsx @@ -1,5 +1,9 @@ import type { ILegalValue } from 'interfaces/context'; -import { useStyles } from './LegalValueLabel.styles'; +import { + StyledContainer, + StyledValue, + StyledDescription, +} from './LegalValueLabel.styles'; import type React from 'react'; import { FormControlLabel } from '@mui/material'; @@ -9,23 +13,21 @@ interface ILegalValueTextProps { } export const LegalValueLabel = ({ legal, control }: ILegalValueTextProps) => { - const { classes: styles } = useStyles(); - return ( -