Skip to content

Duplicate component theme injections in daff-component-themes #4635

Description

@xelaint

Is this a regression?

  • Yes, this behavior used to work in the previous version

Description

daff-component-themes in libs/design/scss/theme.scss includes four component theme mixins twice each. Every rule from those themes is emitted twice into the compiled stylesheet.

Environment

  • Daffodil version: 0.93.1
  • Angular version:
  • Browser(s):
  • Node version: run node --version
  • Operating system:

Steps to reproduce

Steps to reproduce:

  1. Compile a stylesheet that calls daff-component-themes($theme).
  2. Search the output for .daff-callout {.
  3. Two identical blocks appear at different positions in the file (same for .daff-accordion, .daff-article, and .daff-progress-bar).

Expected behavior

Each component theme is included exactly once, so each component's rules appear once in the output and cascade order is explicit.

Actual behavior

accordion, article, callout, and progress-bar rules are each emitted twice.

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions