Skip to content

Commit 5142da3

Browse files
javier-godoypaodb
authored andcommitted
feat: add vaadin version as CSS classname
1 parent 827450a commit 5142da3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
import com.vaadin.flow.router.Route;
4242
import com.vaadin.flow.router.RouterLayout;
4343
import com.vaadin.flow.server.VaadinSession;
44+
import com.vaadin.flow.server.Version;
4445
import java.util.ArrayList;
4546
import java.util.List;
4647
import java.util.Objects;
@@ -211,6 +212,8 @@ public void showRouterLayoutContent(HasElement content) {
211212
}
212213
});
213214

215+
demo.addClassName("demos-v" + Version.getMajorVersion());
216+
214217
if (helperButton != null) {
215218
remove(helperButton);
216219
helperButton = null;

0 commit comments

Comments
 (0)