mirror of
https://github.com/dergigi/boris.git
synced 2026-01-06 00:14:48 +01:00
fix: apply highlight group color to background of count indicator
- Change highlight count indicator to use backgroundColor instead of color - Set text color to black for contrast against colored backgrounds - Maintains priority: nostrverse > friends > mine
This commit is contained in:
@@ -86,7 +86,10 @@ const ReaderHeader: React.FC<ReaderHeaderProps> = ({
|
|||||||
{hasHighlights && (
|
{hasHighlights && (
|
||||||
<div
|
<div
|
||||||
className="highlight-indicator"
|
className="highlight-indicator"
|
||||||
style={highlightIndicatorColor ? { color: highlightIndicatorColor } : undefined}
|
style={highlightIndicatorColor ? {
|
||||||
|
backgroundColor: highlightIndicatorColor,
|
||||||
|
color: '#000'
|
||||||
|
} : undefined}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faHighlighter} />
|
<FontAwesomeIcon icon={faHighlighter} />
|
||||||
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
||||||
@@ -126,7 +129,10 @@ const ReaderHeader: React.FC<ReaderHeaderProps> = ({
|
|||||||
{hasHighlights && (
|
{hasHighlights && (
|
||||||
<div
|
<div
|
||||||
className="highlight-indicator"
|
className="highlight-indicator"
|
||||||
style={highlightIndicatorColor ? { color: highlightIndicatorColor } : undefined}
|
style={highlightIndicatorColor ? {
|
||||||
|
backgroundColor: highlightIndicatorColor,
|
||||||
|
color: '#000'
|
||||||
|
} : undefined}
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faHighlighter} />
|
<FontAwesomeIcon icon={faHighlighter} />
|
||||||
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user