`feature-state` shortcode renders unreadable text in dark mode
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
- Enable dark mode on kubernetes.io.
- Open a page containing a feature state banner. (Eg: https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/#workload-resourceclaims)
- 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
-
Light Mode
I would like to work on this
/triage accepted
/assign
Fixed as part of PR https://github.com/kubernetes/website/pull/56272
/close
@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.