Skip to content

AccentButtonStyle text invisible in High Contrast when clicking the button #10413

Open
@mantaionut

Description

Description

I've create a button like this
<Button Content="Open RGB Editor" Style="{StaticResource AccentButtonStyle}" Grid.Row="9" Click="OpenPopup_Click"/>
It works fine in dark or light mode but not in HighContrast mode. When in HC mode when pressing the button the text of the button is no longer visible.

Recording.2025-02-05.185603.mp4

Reproduction Steps

  1. Create button with style Style="{StaticResource AccentButtonStyle} and some Content="Some text"
  2. Switch to High contrast mode
  3. Pressing the button the text will no longer be visible.

Expected behavior

Button text is still visible when pressing the button in HighContrast

Actual behavior

Button text is no longer visible when pressing the button in HighContrast

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

.net 9.0.1
Windows 11 x64

Other information

No response

Activity

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

Metadata

Metadata

Assignees

Type

Projects

  • Status

    No status

Relationships

None yet

Development

No branches or pull requests

Issue actions