Vaadin platform 10+ is a Java web development platform based on Vaadin web components. If you don't know to which repository your bug report should be filed, use this and we'll move it to the right one.
So I read online that Text is replacing Label, but first problem I ran to I cannot add a class name to Text I get the error
Cannot add a class to the Text component because it doesn't represent an HTML Element but a text Node on the client side
ChatGPT
And I tried to use getStyle().setFontSize("1.2em) and I get UnsupportedOperationException: This instance is immutable
Expected-behavior
No response
Reproduction
Text text = new Text("blah blah");
text.addClassName("class-name");
or
text.getStyle().setFontSize("1.2em");
System Info
Windows 11, Vaadin 24.3.9, Java Amazon Corretto 17, Google Chrome latest, Version 123.0.6312.123 (Official Build) (64-bit)
Describe the bug
So I read online that Text is replacing Label, but first problem I ran to I cannot add a class name to Text I get the error Cannot add a class to the Text component because it doesn't represent an HTML Element but a text Node on the client side ChatGPT
And I tried to use getStyle().setFontSize("1.2em) and I get UnsupportedOperationException: This instance is immutable
Expected-behavior
No response
Reproduction
Text text = new Text("blah blah"); text.addClassName("class-name"); or text.getStyle().setFontSize("1.2em");
System Info
Windows 11, Vaadin 24.3.9, Java Amazon Corretto 17, Google Chrome latest, Version 123.0.6312.123 (Official Build) (64-bit)