mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 22:19:27 -06:00
## Summary Fixes issue #7684 where dropdown menus displayed two arrows instead of one, particularly visible in light theme. ## Root Cause The double arrows were caused by conflicts between: 1. **TomSelect's Bootstrap 5 theme** - provides automatic dropdown arrows via `background-image` 2. **Custom legacy CSS** - was adding duplicate arrows using `::after` pseudo-elements 3. **Bootstrap 4 leftovers** - manual `<b class="caret">` elements in templates ## Changes - **Removed conflicting custom TomSelect arrow CSS** from `explorer.scss` - **Removed leftover `#[b.caret]` element** from font-size dropdown template - **Fixed theme background properties** - changed `background` to `background-color` to preserve TomSelect's arrow images - **Added reusable SCSS function** `dropdown-arrow-svg()` for generating themed dropdown arrows - **Updated dark themes** to override arrow colors using TomSelect's exact CSS selector for precision ## Test Plan - [x] Verify all dropdown menus show only one arrow in default/light theme - [x] Test dropdown arrows are visible and correctly colored in all themes: - [x] Default theme: dark gray arrow - [x] Pink theme: dark gray arrow - [x] Dark theme: light gray arrow - [x] One-dark theme: medium gray arrow - [x] Confirm dropdown functionality works correctly across all themes - [x] Check that font-size dropdown works properly without manual caret element 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>