Skip to content

fix(controls): Proper foreground on Button content#1680

Merged
pomianowski merged 2 commits intolepoco:mainfrom
dkuaf:feature/button-isenabled
Apr 23, 2026
Merged

fix(controls): Proper foreground on Button content#1680
pomianowski merged 2 commits intolepoco:mainfrom
dkuaf:feature/button-isenabled

Conversation

@dkuaf
Copy link
Copy Markdown
Contributor

@dkuaf dkuaf commented Apr 7, 2026

Changes style of Button.xaml to get proper foreground on custom content

Pull request type

Please check the type of change your PR introduces:

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

Wrong foreground on custom content for IsEnabled=false and onpressed

<ui:Button IsEnabled="false">
       <ui:SymbolIcon Symbol="Bug20"/>
</ui:Button>

Issue Number: #1672
fixes #1672

What is the new behavior?

Content Foreground inherhits from parent Foreground

Other information

@dkuaf dkuaf requested a review from pomianowski as a code owner April 7, 2026 09:47
@github-actions github-actions Bot added controls Changes to the appearance or logic of custom controls. styles Topic is related to styles PR Pull request release labels Apr 7, 2026
@dkuaf dkuaf changed the title Proper disabled foreground on Button content Proper foreground on Button content Apr 7, 2026
@dkuaf dkuaf changed the title Proper foreground on Button content fix(controls): Proper foreground on Button content Apr 7, 2026
@dkuaf dkuaf changed the title fix(controls): Proper foreground on Button content fix(controls): fix proper foreground on Button content Apr 7, 2026
@dkuaf dkuaf changed the title fix(controls): fix proper foreground on Button content fix(controls): Proper foreground on Button content Apr 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. PR Pull request release styles Topic is related to styles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button with custom content wrong foreground on IsEnabled=false

2 participants