Skip to content

Selector list parents plus pseudo class children don't apply to all parent selectors #103

@whiteinge

Description

@whiteinge

If a parent style uses a selector list and a child style uses both the parent reference (&) and a pseudo class, that pseudo class isn't present on all parent selectors as expected.

E.g.:

const className = Style.registerStyle({
  "& > input, & .foo > input": {
    "&:focus": { background: "green" },
  },
});

Produces .asdf > input, .asdf .foo > input:focus {...} on the last selector only, and not .asdf > input:focus, .asdf .foo > input:focus {...} on all selectors as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions