Skip to content

Caret chevron: mask-image + currentcolor, drop baked --caret-chevron-inverse #89

Open

Description

@johnhringiv

Context

:root defines --caret-chevron and --caret-chevron-inverse (app.css ~L64–71) — the same SVG twice with the stroke colour baked in, with a comment noting background-image SVGs can't use currentcolor/var() so they must be kept in sync with --color-base-content by hand.

Bootstrap 6 solves exactly this: icons (close button, toggler, breadcrumb chevron) are a mask-image with background-color: currentcolor. The codebase already uses this technique elsewhere (~L1008, and the lightning-logo mask).

Proposed

  • One --caret-chevron token (stroke black; only the alpha matters for a mask) and delete --caret-chevron-inverse.
  • Render the caret on a pseudo-element or wrapper with mask: var(--caret-chevron) center / 12px no-repeat; background-color: currentcolor; for .select, the combobox input, and .dp-month-select.
    • Note: a <select> itself can't host ::after, so .select either needs a wrapper element or appearance: base-select (Chromium-only) — the wrapper is the portable option.
  • Caret colour then follows text colour automatically (including the navy calendar header and any future dark mode), and the "keep in sync" comment goes away.

Inspired by the Bootstrap 6 alpha (migration guide) — not adopting Bootstrap, just borrowing the idea.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions