Skip to content

Drag and drop - missing styles after theme changing #17089

Description

@patryk-roguszewski

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-drag-and-drop-themes-bug

I Can only reproduce changing primary color to first, in my env also all styles were missed.

Steps to reproduce:

  1. Create few themes (+ picker mechanism)
  2. Create drag and drop component (with @mixin background color from theme).
  3. Put in cdkDrag any mat element with color
  4. Run & Change theme to another
  5. Do some works on drag and drop panel.

Expected Behavior

Dragged elements will in this same styles/colors like chosen theme.

Actual Behavior

Dragged elements haven't any styles + primary colors are fetched from first theme.

Environment

  • Angular: 7.1.0
  • CDK/Material: 7.2.0
  • Browser(s): Chrome & Firefox
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS and Docker (on Linux) on test server.

obraz

obraz

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureLabel used to distinguish feature request from other issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions