Skip to content

Conversation

@thibaudcolas
Copy link
Contributor

Description

Part of #1431. Without this, in dark mode the hx-indicator demo button has white text on white background. Switching to Canvas means the button background will be black in dark mode.

This is a similar fix to #2719, though we can’t use primary here as it would make the indicator "bars.svg" image almost invisible.

Testing

Switch between light and dark themes on hx-indicator. Quick recording of the "before" behavior, and the "after" in dark and light themes:

hx-indicator-dark-mode gif 05-58-20-179

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • [ ] I ran the test suite locally (npm run test) and verified that it succeeded
Without this, in dark mode the [hx-indicator](https://htmx.org/attributes/hx-indicator/) demo button has white text on white background. Switching to `Canvas` means the button background will be black in dark mode.

This is a similar fix to bigskysoftware#2719, though we can’t use `primary` here as it would make the indicator "bars.svg" image almost invisible.
letter-spacing: .1em;
text-transform: uppercase;
background: white;
background: Canvas;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😳 what is "Canvas"? I tried to look for it on MDN but am coming up short.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MichaelWest22 MichaelWest22 added the website Non-documentation website issues label Jul 11, 2025
@1cg 1cg merged commit ec886c8 into bigskysoftware:master Jul 15, 2025
@thibaudcolas thibaudcolas deleted the patch-1 branch July 26, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

website Non-documentation website issues

4 participants