KEMBAR78
fix: set display: inline on the label part in base styles by web-padawan · Pull Request #10264 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

Description

Using display: contents is problematic in different ways:

  • it causes anonymous text nodes to disappear in Safari when the tooltip is shown,
  • it causes problems in Start where we use part="label" for editing button text.

Let's change to display: inline as that eliminates both problems.

Type of change

  • Bugfix

Before

btn-before.mp4

After

btn-after.mp4

@web-padawan web-padawan requested a review from jouni September 30, 2025 08:13
@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit 7d359cc into main Sep 30, 2025
8 checks passed
@web-padawan web-padawan deleted the fix/button-label-part branch September 30, 2025 10:54
@vaadin-bot
Copy link
Collaborator

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

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.

3 participants