Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar icon in date input is barely visible (dark mode) #81

Open
gitname opened this issue Mar 23, 2022 · 2 comments
Open

Calendar icon in date input is barely visible (dark mode) #81

gitname opened this issue Mar 23, 2022 · 2 comments

Comments

@gitname
Copy link

gitname commented Mar 23, 2022

Description

When the web browser is in "dark" mode, the calendar icon on the right side of the date input is barely visible, as shown here:

image

The issue is not present when the web browser is in "light" mode, as shown here:

image

To reproduce

  1. Configure your computer so that apps use their "dark" mode by default.

    image

  2. Use a web browser to visit the official new.css demo site: https://newcss.net/demo/

  3. Use the web browser's Developer Tools to edit an existing <input ... /> element so its type attribute has a value of date. For example:

    - <input type="email" name="email" required="">
    + <input type="date" name="email" required="">

    image

  4. See that the calendar icon in the date input field is barely visible.


Environment information:

  • OS: Windows 10
  • Browser: Brave Version 1.36.116 Chromium: 99.0.4844.74 (Official Build) (64-bit)

Based upon what I see in the demo site's HTML source code (excerpt shown below), I think it is using new.css version 1.1.2:

<head>
    <!-- ... -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/inter.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/[email protected]/new.min.css">
</head>
@Kedarnath-Rothe
Copy link

Please assign this issue to me

@cj81499
Copy link

cj81499 commented Feb 22, 2024

this can be fixed with:

body {
  color-scheme: light dark;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants