Skip to content

Commit

Permalink
fix: HTML semantic hierarchy
Browse files Browse the repository at this point in the history
- Don't wrap `div` in `p`
- Don't wrap `p` in `p`
  • Loading branch information
DafyddLlyr committed Jul 10, 2024
1 parent 40907fb commit aa71567
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function ConstraintListItem({ children, ...props }: ConstraintListItemProps) {
expandIcon={<Caret />}
sx={{ pr: 1.5, background: `rgba(255, 255, 255, 0.8)` }}
>
<Typography variant="body2" pr={1.5}>
<Typography component="div" variant="body2" pr={1.5}>
{children}
</Typography>
</AccordionSummary>
Expand Down Expand Up @@ -199,7 +199,7 @@ function ConstraintListItem({ children, ...props }: ConstraintListItemProps) {
</List>
)}
</>
<Typography variant="body2">
<Typography component="div" variant="body2">
<ReactMarkdownOrHtml
source={props.metadata?.text?.replaceAll(
"(/",
Expand Down

0 comments on commit aa71567

Please sign in to comment.