-
Notifications
You must be signed in to change notification settings - Fork 75
feat: add constructors for text binding to Button #8499
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
base: main
Are you sure you want to change the base?
Conversation
92f6c71 to
1032ae5
Compare
DiegoCardoso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add integration tests to check the signals behavior? Wouldn't it be enough to add unit tests instead?
One reason for ITs on my mind is the dynamic Button behavior regarding the icon. Some aspects are challenging to assert: it's quite possible to make the icon accidentally disappear from the DOM upon a text change, and this error condition would be hard to detect from a unit test context. |
DiegoCardoso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO this PR could've been split to remove the noise from the MockUI refactor.
Added a couple of comments.
...arent/vaadin-button-flow-integration-tests/src/main/resources/vaadin-featureflags.properties
Outdated
Show resolved
Hide resolved
...on-flow-parent/vaadin-button-flow/src/main/java/com/vaadin/flow/component/button/Button.java
Outdated
Show resolved
Hide resolved
mshabarov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed one comment about potential breaking change, but otherwise no comment in addition to these Diego has already mentioned.
...-flow-integration-tests/src/main/java/com/vaadin/flow/component/button/tests/ButtonView.java
Show resolved
Hide resolved
f0b04ba to
73b03c5
Compare
See #8507 |
73b03c5 to
c439e17
Compare
Connected to: vaadin/flow#23193 - Add new constructors and methods to support binding text to signals - Refactor internal text handling using a Text node - Improve icon slot management and theme attribute updates
- Use single `SignalPropertySupport` instance for managing signal-originating button text changes - Replace direct DOM updates with centralized handler method - Maintain consistency between setText and bindText operations
adea1db to
cbfacd4
Compare
|



Connected to: vaadin/flow#23193
Depends on #8507