Skip to content

Commit

Permalink
feat: allow selection of text in contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Oct 17, 2023
1 parent 08116d0 commit 80dd988
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ const StyledAccordionSummary = styled(AccordionSummary)(({ theme }) => ({
textDecoration: 'underline',
},
},
userSelect: 'auto',
'-webkit-user-select': 'auto',
'-moz-user-select': 'auto',
'-ms-user-select': 'auto',
}));
const StyledAccordionDetails = styled(AccordionDetails)(({ theme }) => ({
borderTop: `1px dashed ${theme.palette.divider}`,
Expand All @@ -59,13 +63,13 @@ const StyledWrapper = styled('div')({
});

export const ConstraintAccordionView = ({
constraint,
onEdit,
onDelete,
sx = undefined,
compact = false,
renderAfter,
}: IConstraintAccordionViewProps) => {
constraint,
onEdit,
onDelete,
sx = undefined,
compact = false,
renderAfter,
}: IConstraintAccordionViewProps) => {
const [expandable, setExpandable] = useState(true);
const [expanded, setExpanded] = useState(false);

Expand Down

0 comments on commit 80dd988

Please sign in to comment.