Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

wildcardalice
Copy link
Contributor

@wildcardalice wildcardalice commented Sep 11, 2025

In its current implementation, icon buttons and FABs are more difficult to filter for compared to text-based buttons, which can use their { text} filter property, usually relying on a custom selector (eg: class or id) or ancestor. This change aims to simplify this by allowing a user to filter via a contained icon. The filtering logic is quite simple and reuses the existing logic inside MatIconHarness for simplicity and reliability.

Example usage:

const iconButton = await getHarness(MatButtonHarness.with({ icon: "favorite" }));

@wildcardalice wildcardalice requested a review from a team as a code owner September 11, 2025 20:33
@wildcardalice wildcardalice requested review from mmalerba and tjshiu and removed request for a team September 11, 2025 20:33
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: material/testing labels Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant