SchweizerischeBundesbahnen/scion-workbench

Setting CSS class(es) via view handle should not replace configured CSS classes on route or passed via navigation

danielwiehl opened this issue · 0 comments

Describe the bug

When setting CSS class(es) on the workbench view handle, configured CSS class(es) configured on the view's route or passed via navigation are replaced.

To Reproduce

Steps to reproduce the behavior:

  1. Configure CSS class(es) on the route via route data
  2. Navigate to the view, also passing CSS class(es) via routing extras
  3. In the view, set CSS class(es) via WorkbenchView handle
  4. See that CSS class(es) configured on the route or passed via navigation are replaced

Expected behavior

CSS class(es) set via view handle do not replace configured or passed CSS(es), but are added instead.

Environment

  • SCION Workbench version: 14.0.0-beta.7