Skip to content
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

fix!: only modify text content for default slotted buttons #5955

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented Jun 8, 2023

Description

Related to #5946 (comment) - see code example there.

Similar to #5146 that introduced _isDefault flags to vaadin-upload slot controllers for using by Flow counterpart.

This PR makes it possible for the vaadin-crud web component users to actually pass custom slotted button elements.

Type of change

  • Behavior altering fix

Overview

Before

  1. Slotted button text content always overridden based on the corresponding i18n property
  2. Slotted button theme attribute was always set to use the value defined by the controller

After

  1. When setting _isDefault property on the slotted button, vaadin-crud behaves as before
  2. Otherwise, neither text content nor theme attribute aren't changed so user can set them

@web-padawan web-padawan force-pushed the refactor/crud-slot-controller branch from ab20a40 to 19cd775 Compare June 8, 2023 12:48
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@DiegoCardoso DiegoCardoso left a comment

Choose a reason for hiding this comment

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

LGTM

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.2.0.alpha1 and is also targeting the upcoming stable 24.2.0 version.

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.

4 participants