Skip to content

Commit

Permalink
Add transparency to text highlight color
Browse files Browse the repository at this point in the history
In order avoid the problem of hiding parts of the characters
adjacent to the highlighted text, the highlighting background
needs to be partially transparent.
  • Loading branch information
csillag committed Feb 2, 2024
1 parent 2aa9cef commit d7c6df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/HighlightedText/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface HighlightOptions {
}

const defaultHighlightStyle: SxProps = {
background: '#FFFF54',
background: '#FFFF5480',
padding: '4px',
margin: '-4px',
}
Expand Down

0 comments on commit d7c6df6

Please sign in to comment.