Skip to content

fix(angular): remove the global typography and theme from the fintech grid templates - #1910

Open
simeonoff wants to merge 1 commit into
masterfrom
fix/fintech-templates-global-theme
Open

simeonoff wants to merge 1 commit into
masterfrom
fix/fintech-templates-global-theme

Conversation

@simeonoff

Copy link
Copy Markdown
Member

Description

The fintech grid and fintech tree grid component stylesheets include typography() at the top level, and the tree grid also theme($default-palette). The app's global stylesheet already includes the theme.

The next major of igniteui-theming (IgniteUI/igniteui-theming#680) writes the global rules to :root, :scope, :host. In a component stylesheet, :host is the component's host, so these calls would apply the default Material typography, and in the tree grid the default Material palette, to the component. In an app with a custom theme, the tree grid's secondary color would turn pink.

This removes both calls. core() stays, because the dark-theme() call under .fin-dark-theme relies on the components it registers. Without it, the dark theme loses its overlay and toggle styles.

Compiled against igniteui-angular master:

  • The .fin-dark-theme output is identical before and after.
  • The removed output was the .ig-typography rules and the component token rules from theme(), such as [igxButton=contained] and igx-sparkline. Under emulated encapsulation they matched only elements in the component's own template, and they repeat what the global theme sets. One case changes: in an app whose global theme uses another design system, the buttons in this template no longer get the Material tokens.

Related Issue

Closes #1909

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring / code cleanup
  • Build / CI configuration change

Affected Packages

  • igniteui-cli (packages/cli)
  • @igniteui/cli-core (packages/core)
  • @igniteui/angular-templates (packages/igx-templates)
  • @igniteui/angular-schematics (packages/ng-schematics)
  • @igniteui/mcp-server (packages/igniteui-mcp)

Checklist

  • I have tested my changes locally (npm run test)
  • I have built the project successfully (npm run build)
  • I have run the linter (npm run lint)

… grid templates

The fintech grid and fintech tree grid component stylesheets included typography() and theme($default-palette) at the top level. The app's global stylesheet already includes the theme. With the next igniteui-theming major, the global rules also target :host, so these calls would apply the default Material typography and palette to the component. core() stays, because the dark-theme() call in the component relies on the components it registers.

Closes #1909

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the fintech template theme and typography updates.

No open issues 🎉

What changed in this PR

Updates the Angular fintech templates to avoid overriding the app’s theme and typography with the upcoming igniteui-theming major, addressing #1909.

Changes:

  • Removes top-level typography() calls from both fintech templates.
  • Removes the tree grid’s top-level default theme() call.
  • Retains core() and the scoped .fin-dark-theme blocks to preserve dark-theme support.
File Description
packages/​igx-templates/​igx-ts/​custom-templates/​fintech-tree-grid/​files/​src/​app/​__path__/​__filePrefix__.scss Removes global typography and default theme mixins.
packages/​igx-templates/​igx-ts/​custom-templates/​fintech-grid/​files/​src/​app/​__path__/​__filePrefix__.scss Removes the global typography mixin.

Review effort: Balanced

@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 95.662%. remained the same — fix/fintech-templates-global-theme into master

@simeonoff
simeonoff requested a review from kdinev November 25, 2026 12:57
@simeonoff simeonoff removed their assignment Nov 25, 2026
@simeonoff simeonoff added templates component OR scenario template ❌ status: awaiting-test labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

templates component OR scenario template ❌ status: awaiting-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants