Skip to content

Remove the global theme mixins from the fintech grid and fintech tree grid component styles #1909

In review

Description

@simeonoff

Description

Two Angular custom templates include global theme mixins at the top level of a component stylesheet:

  • packages/igx-templates/igx-ts/custom-templates/fintech-tree-grid/files/src/app/__path__/__filePrefix__.scss (lines 207-209):
    @include core();
    @include typography($font-family: $material-typeface, $type-scale: $material-type-scale);
    @include theme($default-palette);
  • packages/igx-templates/igx-ts/custom-templates/fintech-grid/files/src/app/__path__/__filePrefix__.scss (lines 229-230):
    @include core();
    @include typography($font-family: $material-typeface, $type-scale: $material-type-scale);

With emulated encapsulation these lines have no visible effect today. The app's global styles.scss already includes the theme, either from the custom theme option or the prebuilt CSS theme.

The next major of igniteui-theming (IgniteUI/igniteui-theming#680) writes the global rules to :root, :scope, :host instead of :root. In a component stylesheet, :host becomes the component's host, so these lines will start theming the component and its subtree:

  • fintech tree grid: the component switches to the default Material palette and typography. With a custom app theme, its secondary color turns from the app's blue to pink.
  • fintech grid: the component gets the Material type scale and font, overriding the app's typography.

The rest of the page doesn't change.

Fix

Remove these lines from both templates. The .fin-dark-theme blocks, which call dark-theme() inside a selector, stay as they are.

The removal changes nothing with the current igniteui-theming, so it can ship now, before an igniteui-angular release depends on the new major.

Existing projects

Projects already generated from these templates keep the lines. They're affected only when they update to the igniteui-angular release that moves to the new igniteui-theming major. That release's notes should tell them to remove top-level core(), typography() and theme() calls from component stylesheets.

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. simeonoff commented on Nov 25, 2026

    @simeonoff
    MemberAuthor

    Correction to the fix above: core() stays. The dark-theme() call under .fin-dark-theme relies on the components that core() registers, and loses its overlay and toggle styles without it. core() itself only emits structural rules and spacing variables that resolve the same on the host. Only typography() and theme($default-palette) need to go, see #1910.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions