Skip to content

Set explicit text color on dialog and buttons to prevent white-on-white with color-scheme dark#5814

Open
vincentfretin wants to merge 1 commit intoaframevr:masterfrom
vincentfretin:set-dialog-color
Open

Set explicit text color on dialog and buttons to prevent white-on-white with color-scheme dark#5814
vincentfretin wants to merge 1 commit intoaframevr:masterfrom
vincentfretin:set-dialog-color

Conversation

@vincentfretin
Copy link
Copy Markdown
Contributor

Description:

With color-scheme normal or light, you get
Capture d’écran du 2026-04-16 14-02-10
but the black text is from the browser default style.
When you switch to color-scheme: dark for example with

<style>
:root {
  color-scheme: dark;
}
</style>

you get white on white
Capture d’écran du 2026-04-16 14-02-37

and with inspector open you get
Capture d’écran du 2026-04-16 14-02-43
because color come from the body.aframe-inspector-opened rule.

Changes proposed:

  • Define text color explicitly for a-dialog and a-button so we have the first image with color-scheme dark.

…te with color-scheme dark

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant