Skip to content

fix: readable text in public preview callout for light mode#44680

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-public-preview-callout-index-docs
Jul 10, 2026
Merged

fix: readable text in public preview callout for light mode#44680
pelikhan merged 2 commits into
mainfrom
copilot/fix-public-preview-callout-index-docs

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

.hero-preview-callout had color: #f0f6fc (near-white) hardcoded in the base rule, rendering invisibly against its light yellow background (rgba(219, 168, 43, 0.12)) in light mode.

Changes

  • docs/src/styles/custom.css
    • Added --aw-callout-preview-text: #6a4500 to the light theme variables block
    • Added light-mode override rule using that variable:
      :root[data-theme='light'] .hero .hero-preview-callout {
        color: var(--aw-callout-preview-text);
      }

Copilot AI and others added 2 commits July 10, 2026 07:21
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…mode

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan July 10, 2026 07:22
@pelikhan
pelikhan marked this pull request as ready for review July 10, 2026 07:30
Copilot AI review requested due to automatic review settings July 10, 2026 07:30
@pelikhan
pelikhan merged commit ddbd0fd into main Jul 10, 2026
@pelikhan
pelikhan deleted the copilot/fix-public-preview-callout-index-docs branch July 10, 2026 07:31
@github-actions

Copy link
Copy Markdown
Contributor

🤖 PR Triage

Field Value
Category bug
Risk 🟢 Low
Score 28 / 100
Action ✅ auto_merge

Score breakdown: impact 12 + urgency 8 + quality 8

Rationale: Single-file CSS-only fix correcting invisible text in light mode. No logic changes, no test impact. Safe to auto-merge when CI passes.

Generated by 🔧 PR Triage Agent · 44.7 AIC · ⌖ 5.13 AIC · ⊞ 5.4K ·

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a light-mode readability issue in the docs landing hero by overriding the .hero-preview-callout text color when the light theme is active.

Changes:

  • Added a light-theme CSS variable (--aw-callout-preview-text) for the preview callout’s text color.
  • Added a light-mode-specific rule to apply that variable to .hero .hero-preview-callout.
Show a summary per file
File Description
docs/src/styles/custom.css Introduces a light-theme variable and a light-mode override so the hero preview callout text remains readable against its light background.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Low

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants