Fix dark mode unreadability for auth sections and polymorphic dropdowns#439
Draft
Fix dark mode unreadability for auth sections and polymorphic dropdowns#439
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/rohit-gohri/redocusaurus/sessions/22a5db03-fbed-49e9-9ca0-86433bc16bb6 Co-authored-by: rohit-gohri <31949290+rohit-gohri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix dark mode readability for authentication section
Fix dark mode unreadability for auth sections and polymorphic dropdowns
Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In dark mode, the expanded authentication section and oneOf/anyOf discriminator dropdowns render with near-white backgrounds, making light-colored text completely unreadable.
Root Causes
DARK_THEME_OPTIONS.colors.graywas set to#FAFAFA/#F5F5F5— identical to the light theme defaults. Redoc'sSecuritiesColumn(expanded auth),Uc(nested content areas), andQc(operation buttons) all derive their backgrounds from these values.Dropdownstyled-component hasbackground: whitehardcoded — not overridable via theme options, requires a CSS override.Changes
redocData.ts— Replace near-white gray values inDARK_THEME_OPTIONSwith actual dark colors:styles.css— Add a dark-mode CSS override targeting the dropdown container (identified by its childselect.dropdown-select) to override the hardcoded white background:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/Redocly/redoc/contents/src/common-elements/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(http block)If you need me to access, download, or install something from one of these locations, you can either: