mirror of
https://github.com/dergigi/boris.git
synced 2025-12-23 17:44:19 +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 && (
|
||||
<div
|
||||
className="highlight-indicator"
|
||||
style={highlightIndicatorColor ? { color: highlightIndicatorColor } : undefined}
|
||||
style={highlightIndicatorColor ? {
|
||||
backgroundColor: highlightIndicatorColor,
|
||||
color: '#000'
|
||||
} : undefined}
|
||||
>
|
||||
<FontAwesomeIcon icon={faHighlighter} />
|
||||
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
||||
@@ -126,7 +129,10 @@ const ReaderHeader: React.FC<ReaderHeaderProps> = ({
|
||||
{hasHighlights && (
|
||||
<div
|
||||
className="highlight-indicator"
|
||||
style={highlightIndicatorColor ? { color: highlightIndicatorColor } : undefined}
|
||||
style={highlightIndicatorColor ? {
|
||||
backgroundColor: highlightIndicatorColor,
|
||||
color: '#000'
|
||||
} : undefined}
|
||||
>
|
||||
<FontAwesomeIcon icon={faHighlighter} />
|
||||
<span>{highlightCount} highlight{highlightCount !== 1 ? 's' : ''}</span>
|
||||
|
||||
Reference in New Issue
Block a user