xz / xz/new.css

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

Open
#81 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
4.1k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

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/open-fonts@1.1.1/fonts/inter.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css">
</head>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on the new.css demo site with a date input in a dark browser theme, then inspect the styles applied to the input and its calendar icon. Done means the calendar icon is clearly visible in dark mode without regressing its light-mode appearance.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.