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 1c809a7 commit 9ec1522
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1223.trivial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add transparency to text highlight color
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 9ec1522

Please sign in to comment.