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: avoid overriding custom button content and theme #3487

Merged
merged 2 commits into from
Feb 24, 2022

Conversation

sissbruecker
Copy link
Contributor

Description

Fixes confirm dialog to not apply the text and theme values when using custom buttons. Custom buttons should not be altered, especially the content, which might contain custom elements like icons.

This might break stuff for developers that have adapted to the broken behavior, and set text and theme in addition to adding a custom button. Seeing that we did not get a bug report about this behavior so far, it might not be a very common use-case.

Fixes vaadin/flow-components#2709

Type of change

  • Bugfix

@sissbruecker
Copy link
Contributor Author

Going to improve the JSdoc a bit to clarify the behavior.

@sissbruecker
Copy link
Contributor Author

Going to improve the JSdoc a bit to clarify the behavior.

Done

@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2022

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

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with platform 23.0.0.rc1 and is also targeting the upcoming stable 23.0.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.

[confirm-dialog] Custom text, theme override values from custom buttons
3 participants