Skip to content

Conversation

Difegue
Copy link
Contributor

@Difegue Difegue commented Sep 24, 2024

Non-actionable cards shouldn't have hover behavior, as per WinUI

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?

CardControls behave as if they can be clicked when hovering over them

Issue Number: #447

What is the new behavior?

  • CardControls are inert, as in the Windows Settings app

Other information

@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 Sep 24, 2024
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Jan 25, 2025
@pomianowski pomianowski merged commit 0fc9208 into lepoco:main Feb 1, 2025
2 checks passed
@Difegue Difegue deleted the card-control-hover branch February 10, 2025 14:25
@seikosantana
Copy link

In the WPF-UI Gallery it is still clickable

@seikosantana
Copy link

Hi, might be not the correct way to use the CardControl, but I like how it has Icon and header slot out of the box and I'd like to use it like a button.

Is there any recommended way to enable the hover and click behavior for CardControl?

Thanks in advance

@Difegue
Copy link
Contributor Author

Difegue commented Apr 6, 2025

Use CardExpander.

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 ⭐ top pull request Top pull request. styles Topic is related to styles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants