Skip to content

Input type "date" dark datepicker icon not visible on dark background #71

Description

@johnaau

When using a input of type date, the browser renders a calendar icon inside the input control, however this is black so is not visible with a dark background.

I found a https://stackoverflow.com/a/70841645 on Stack Overflow and this CSS below seems to be the best solution. It makes the icon white and the date picker also appears in a dark mode.

input {
  color-scheme: dark;
}

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions