Skip to content

Commit ae6302f

Browse files
javier-godoypaodb
authored andcommitted
fix(demo): fix demo styles in vaadin 25
1 parent 04a2066 commit ae6302f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/test/java/com/flowingcode/vaadin/addons/uploadhelper/UploadHelperDemoView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* #%L
33
* Upload Helper Add-on
44
* %%
5-
* Copyright (C) 2022 - 2024 Flowing Code
5+
* Copyright (C) 2022 - 2026 Flowing Code
66
* %%
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -22,13 +22,15 @@
2222
import com.flowingcode.vaadin.addons.DemoLayout;
2323
import com.flowingcode.vaadin.addons.GithubLink;
2424
import com.flowingcode.vaadin.addons.demo.TabbedDemo;
25+
import com.vaadin.flow.component.dependency.CssImport;
2526
import com.vaadin.flow.router.ParentLayout;
2627
import com.vaadin.flow.router.Route;
2728

2829
@SuppressWarnings("serial")
2930
@ParentLayout(DemoLayout.class)
3031
@Route("upload-helper")
3132
@GithubLink("https://github.com/FlowingCode/UploadHelper")
33+
@CssImport("./styles/upload-helper-demo-styles.css")
3234
public class UploadHelperDemoView extends TabbedDemo {
3335

3436
public UploadHelperDemoView() {

src/test/resources/META-INF/frontend/styles/shared-styles.css renamed to src/test/resources/META-INF/frontend/styles/upload-helper-demo-styles.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* #%L
33
* Upload Helper Add-on
44
* %%
5-
* Copyright (C) 2022 - 2024 Flowing Code
5+
* Copyright (C) 2022 - 2026 Flowing Code
66
* %%
77
* Licensed under the Apache License, Version 2.0 (the "License");
88
* you may not use this file except in compliance with the License.
@@ -17,4 +17,7 @@
1717
* limitations under the License.
1818
* #L%
1919
*/
20-
/*Demo styles*/
20+
21+
#content.upload-helper-demo.demos-v25 vaadin-upload {
22+
margin-bottom: calc(var(--vaadin-padding-s) * (1 - var(--vaadin-lumo-theme,0)));
23+
}

0 commit comments

Comments
 (0)