Skip to content

replace PathIcon with Button in ClosableTag #690

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 10, 2025
Merged

replace PathIcon with Button in ClosableTag #690

merged 3 commits into from
Jul 10, 2025

Conversation

zdpcdt
Copy link
Collaborator

@zdpcdt zdpcdt commented Jun 1, 2025

This pull request updates the ClosableTag component in the TagInput control to improve its design and functionality. The key changes include replacing the PathIcon close button with a Button, updating styles for hover and pressed states, and simplifying the command handling logic.

Design and UI Improvements:

Codebase Simplification:

@zdpcdt zdpcdt requested a review from Copilot June 1, 2025 18:14
Copy link
Contributor

@Copilot Copilot AI left a comment

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 updates the ClosableTag component by replacing the PathIcon close button with a Button to improve design and functionality while simplifying command handling logic.

  • Replaces PathIcon with Button and updates the TemplatePart attribute.
  • Simplifies OnApplyTemplate by removing PointerPressed logic in favor of Button command binding.
  • Adds design preview and new Button styles for hover and pressed states.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Ursa/Controls/TagInput/ClosableTag.cs Updated TemplatePart attribute and simplified event handling logic by replacing PathIcon with Button.
src/Ursa.Themes.Semi/Controls/TagInput.axaml Updated control template and added design preview plus new hover/pressed styles for the close Button.

@rabbitism
Copy link
Member

Why do we need to make this change?

@rabbitism rabbitism merged commit 82e9a7e into main Jul 10, 2025
3 checks passed
@zdpcdt zdpcdt deleted the tagInput branch July 10, 2025 14:05
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.

2 participants