Skip to content

splitlayout with small theme cause all nested components to be rendered as small in aura theme #9076

@davidef

Description

@davidef

Description

splitlayout with small theme cause all nested components to be rendered as small in aura theme

Expected outcome

Nested component rendered with standard size

Minimal reproducible example

add(new TextField("Normal"));
TextField small = new TextField("Small");
small.addThemeVariants(TextFieldVariant.SMALL);
add(small);

TextField nestedSmall = new TextField("Small");
nestedSmall.addThemeVariants(TextFieldVariant.SMALL);

SplitLayout l = new SplitLayout(new TextField("Expected normal"), nestedSmall);
l.setThemeVariants(SplitLayoutVariant.SMALL);
add(l);

We workaround it with

vaadin-split-layout[theme~=small]{ 
  --aura-base-font-size: 12;
  --aura-base-size: 16;
}  

Steps to reproduce

Open the view

Environment

Vaadin version(s): 25.1.1

Browsers

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions