Repository navigation
Conversation
… 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
Contributor
There was a problem hiding this comment.
🟢 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-themeblocks 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The fintech grid and fintech tree grid component stylesheets include
typography()at the top level, and the tree grid alsotheme($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,:hostis 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 thedark-theme()call under.fin-dark-themerelies on the components it registers. Without it, the dark theme loses its overlay and toggle styles.Compiled against
igniteui-angularmaster:.fin-dark-themeoutput is identical before and after..ig-typographyrules and the component token rules fromtheme(), such as[igxButton=contained]andigx-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
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
npm run test)npm run build)npm run lint)