fix: apply user highlight color to both marker and arrow icons

- Apply color style directly to both icons in collapsed highlights button
- Update CSS to use color-agnostic pulse animation (opacity/scale)
- Remove hardcoded yellow color and drop-shadow from glow effect
This commit is contained in:
Gigi
2025-10-12 23:50:34 +02:00
parent 5a0d08641b
commit fb06a1aec3
2 changed files with 10 additions and 7 deletions

View File

@@ -23,10 +23,13 @@ const HighlightsPanelCollapsed: React.FC<HighlightsPanelCollapsedProps> = ({
className={`toggle-highlights-btn with-icon ${hasHighlights ? 'has-highlights' : ''}`}
title="Expand highlights panel"
aria-label="Expand highlights panel"
style={{ color: highlightColor }}
>
<FontAwesomeIcon icon={faHighlighter} className={hasHighlights ? 'glow' : ''} />
<FontAwesomeIcon icon={faChevronRight} />
<FontAwesomeIcon
icon={faHighlighter}
className={hasHighlights ? 'glow' : ''}
style={{ color: highlightColor }}
/>
<FontAwesomeIcon icon={faChevronRight} style={{ color: highlightColor }} />
</button>
</div>
)

View File

@@ -1836,17 +1836,17 @@ body.mobile-sidebar-open {
}
.highlights-container.collapsed .toggle-highlights-btn .glow {
color: #ffff00;
filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.6));
animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
0%, 100% {
filter: drop-shadow(0 0 4px rgba(255, 255, 0, 0.6));
opacity: 0.8;
transform: scale(1);
}
50% {
filter: drop-shadow(0 0 8px rgba(255, 255, 0, 0.9));
opacity: 1;
transform: scale(1.1);
}
}