Skip to content

Give Fluent suggested actions a solid background in forced colors - #5935

Merged
Eugene (OEvgeny) merged 4 commits into
mainfrom
OEvgeny/fix-fluent-forced-suggested-action
Oct 21, 2026
Merged

Eugene (OEvgeny) merged 4 commits into
mainfrom
OEvgeny/fix-fluent-forced-suggested-action

Conversation

@OEvgeny

@OEvgeny Eugene (OEvgeny) commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

In Windows contrast themes, Fluent suggested actions are see-through: a host page background image shows behind their text.

Changelog Entry

Fixed

  • Fixed Fluent suggested actions showing the page background through them in forced colors, in PR #5935, by @OEvgeny

Description

The Fluent suggested action has background: transparent, and forced colors keep a transparent background transparent, so the button text sits on whatever the host page draws behind Web Chat. In forced colors, the suggested action now uses ButtonFace as its background, also when hovered or pressed; nothing changes without forced colors.

Specific Changes

  • fluent-theme/.../SuggestedAction.module.css: background-color: ButtonFace in forced colors

  • fluentTheme/suggestedActions.forcedColors.html and .dark.html (new): snapshot 1, both suggested actions are solid over a striped host page background in light and dark forced colors

  • I have added tests and executed them locally

  • I have added .changelog/<PR#>-<slug>.md

  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@OEvgeny
Eugene (OEvgeny) marked this pull request as ready for review October 20, 2026 22:21
Copilot AI balanced review requested due to automatic review settings October 20, 2026 22:21

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@OEvgeny
Eugene (OEvgeny) enabled auto-merge (squash) October 20, 2026 23:23
@OEvgeny
Eugene (OEvgeny) merged commit 3d4881a into main Oct 21, 2026
60 of 61 checks passed
@OEvgeny
Eugene (OEvgeny) deleted the OEvgeny/fix-fluent-forced-suggested-action branch October 21, 2026 00:14
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.

3 participants