KEMBAR78
feat: add field-button part to all field buttons by web-padawan · Pull Request #10168 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

Description

Fixes #10167

Type of change

  • Feature

@web-padawan web-padawan force-pushed the feat/field-button-part branch from 210124f to 4477876 Compare September 15, 2025 07:06
@sonarqubecloud
Copy link

Copy link
Member

@jouni jouni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could get a way with a simple button part name? 🤔 If not, I think field-button is good enough as a name.

Not a breaking change, but we might want to point this out in the upgrading guide, for apps that still use shadow DOM styles, and haven't accounted for multiple part names on these elements.

@web-padawan
Copy link
Member Author

I was also thinking about ::part(button) but IMO using ::part(field-button) is more safe in terms of global CSS.
Yes, this will need to be reflected in the upgrading guide indeed, as [part="clear-button"] will stop working.

@web-padawan web-padawan merged commit db44120 into main Sep 15, 2025
9 checks passed
@web-padawan web-padawan deleted the feat/field-button-part branch September 15, 2025 08:00
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-alpha12.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Styling all “field buttons” similarly is cumbersome

4 participants