mirror of
https://github.com/dergigi/boris.git
synced 2025-12-28 20:14:36 +01:00
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:
@@ -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>
|
||||
)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user