website icon indicating copy to clipboard operation
website copied to clipboard

`feature-state` shortcode renders unreadable text in dark mode

Open dipesh-rawat opened this issue 5 months ago • 5 comments

This is a Bug Report

Problem:

The feature-state shortcode renders low contrast text in dark mode.

When dark mode is enabled, portions of the text within the feature state banner, such as "(disabled by default)", are difficult to read due to insufficient contrast against the banner background.

Proposed Solution:

Update the dark mode styling for the feature-state shortcode to ensure all text within the banner maintains sufficient contrast and remains readable in both light and dark modes.

Shortcode to Update:

https://github.com/kubernetes/website/blob/main/layouts/shortcodes/feature-state.html

The screenshot page is provided as an example. The issue appears to affect any page that uses the feature-state shortcode.

Additional Information:

Steps to reproduce

  1. Enable dark mode on kubernetes.io.
  2. Open a page containing a feature state banner. (Eg: https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#workload-resourceclaims)
  3. Observe the text within the banner.

Expected behavior

All text within the feature state banner is clearly readable in both light and dark modes.

Actual behavior

Some text within the banner has insufficient contrast and is difficult to read in dark mode.

Screenshots attached showing the rendering in both dark mode and light mode.

  • Dark Mode Image

  • Light Mode Image

dipesh-rawat avatar Jun 26 '26 14:06 dipesh-rawat

I would like to work on this

haseebnizami avatar Jun 27 '26 05:06 haseebnizami

/triage accepted

Caesarsage avatar Jun 27 '26 07:06 Caesarsage

/assign

haseebnizami avatar Jun 27 '26 08:06 haseebnizami

Fixed as part of PR https://github.com/kubernetes/website/pull/56272

/close

dipesh-rawat avatar Jun 27 '26 21:06 dipesh-rawat

@dipesh-rawat: Closing this issue.

In response to this:

Fixed as part of PR https://github.com/kubernetes/website/pull/56272

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

kubernetes-prow[bot] avatar Jun 27 '26 21:06 kubernetes-prow[bot]