vaadin-component-factory / vcf-pdf-viewer-flow

Vaadin Addon for providing pdf viewing functionality
Apache License 2.0
9 stars 6 forks source link

Lumo theme is applied on top of a Material theme #40

Open mvysny opened 1 year ago

mvysny commented 1 year ago

I am using a Material theme in my app. When I add this addon to my app, suddenly it looks like as if Lumo theme as included as well: the buttons and the textfields change their appearance:

Material theme before adding the addon dependency:

Screenshot from 2023-05-04 11-40-25

After adding the addon dependency:

Screenshot from 2023-05-04 11-42-21

Easy to reproduce:

  1. git clone the Vaadin skeleton starter and checkout the v23 branch, to bring in Vaadin 23.3.12.
  2. Add @Theme(themeClass = Material.class) to the Application class.
  3. Add this addon as a dependency to pom.xml:
        <dependency>
            <groupId>org.vaadin.addons.componentfactory</groupId>
            <artifactId>vcf-pdf-viewer</artifactId>
            <version>2.7.2</version>
        </dependency>
  1. Run the app.