Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[aura] Add Aura-specific CSS reset for overlays #10310

@sissbruecker

Description

@sissbruecker

Describe your motivation

Overlay base styles have a CSS reset for text styles, so that styles from a container (e.g. a grid header cell) don't inherit into an overlay component in that container (e.g. items in a select in that grid cell):

/* CSS reset for font styles */
color: initial;
font: initial;
letter-spacing: initial;
text-align: initial;
text-decoration: initial;
text-indent: initial;
text-transform: initial;
user-select: text;
white-space: initial;
word-spacing: initial;

For Aura that currently results in text in overlays not using the theme's default font family, size, etc., as it doesn't have a custom reset for overlays.

Describe the solution you'd like

Aura should have a custom reset for overlays, similar to the one that is used in Lumo:

/* CSS reset for font styles */
color: var(--lumo-body-text-color);
font-family: var(--lumo-font-family);
font-size: var(--lumo-font-size-m);
font-style: normal;
font-weight: 400;
font-variant: normal;
line-height: var(--lumo-line-height-m);
letter-spacing: 0;
text-align: initial;
text-decoration: none;
text-indent: initial;
text-transform: none;
white-space: initial;
word-spacing: initial;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions