Skip to content

CSSImport does not override Lumo #16231

Closed

Description

@Artur-

Description of the bug

The loading order of CSS described in https://vaadin.com/docs/latest/advanced/css-loading-order is

  1. The Lumo theme.
  2. Application-specific bundled CSS added with a `@CssImport'.
  3. Styles added on the Java side via Page::addStylesheet().
  4. Application-specific unbundled CSS added with @Stylesheet.
  5. Parent theme.
  6. Current theme.

This works as expected when running with Vite except that @CssImport does not override the Lumo theme.

image

Expected behavior

Lumo styles should always be only default styles and everything else should override

Minimal reproducible example

Versions

  • Vaadin / Flow version: 24.0.0

Activity

  1. self-assigned this
    on Mar 13, 2023
  2. added 2 commits that reference this issue on Mar 13, 2023
    f6ba875
    7ef9593
  3. added 14 commits that reference this issue on Mar 14, 2023
    92b0002
    6798c3c
    ba5928f
    b325cef
    8fdcd06
    8fdedeb
    1c93a3f
    8fc6734
    84a4ddb
    87de729
    063a97d
    63b4e82
    f71c5bb
    ef0dbcd
  4. added 2 commits that reference this issue on Mar 27, 2023
    a9d8de0
    e63debd
  5. vaadin-bot commented on Apr 4, 2023

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 24.1.0.alpha2 and is also targeting the upcoming stable 24.1.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions