Skip to content

Use current-selector-or-root in _root.scss #42594

Description

@olfek

Prerequisites

Proposal

:root,
[data-bs-theme="light"] {

should be put inside a call to

https://github.com/angular/components/blob/a1ce1addeb1e422808bcac4166c2ea58ca40052a/src/material/core/style/_sass-utils.scss#L11-L27

so that this

.bootstrap-in-here
{
    @import "bootstrap/scss/bootstrap";
}

can work.

my current workaround involves doing this in _root.scss

&, // added use of parent selector
:root,
[data-bs-theme="light"] {
    ...
}

Motivation and context

n/a

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