Repository navigation
Conversation
… styles from it theme() wraps the igniteui-theming theme(), so the markers and factors use its root selector, :root, :scope, :host. The first theme() call in a compilation emits the core styles, $exclude: (core) leaves them out, and core() is deprecated. theme() takes $print-layout, $enhanced-accessibility and a content block, and without $elevations uses the elevations of the schema's design system.
theme() passes scrollbar in $exclude to the igniteui-theming theme(), because the Angular theme styles .ig-scrollbar itself, with the theme handler and the ig-scrollbar exclusion. The context menu and chart dialog of igniteui-angular-extras pass $sb-width: thin instead of the deprecated $sb-size, which had no effect.
simeonoff
force-pushed
the
simeonoff/theming-31
branch
from
December 4, 2026 14:38
6d75b7a to
4e0e668
Compare
This branch has not been deployed
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.
Closes #17887
Description
Builds the theme on
igniteui-theming31.0.0-beta.2:theme()wraps theigniteui-themingtheme(). The markers and factors now use its root selector,:root, :scope, :host, like the palette and elevations. Before, they stayed on:root.theme()call in a compilation emits the core styles at the root, and$exclude: (core)leaves them out.core()is deprecated and still works:core(); theme()emits the core styles once.theme()takes$print-layout,$enhanced-accessibilityand a content block.$elevations,theme()uses the schema's elevations, so Indigo themes get the Indigo shadows.igniteui-themingtheme()is called withscrollbarexcluded, because the Angular theme styles.ig-scrollbaritself. It declares the size steps, and the theme no longer emits--sb-size.igniteui-angular-extraspass$sb-width: thininstead of the deprecated$sb-size.Motivation / Context
Part of IgniteUI/igniteui-theming#651: one global theme in
igniteui-theming. With the new root selector, a theme also applies inside@scope.Type of Change (check all that apply):
Component(s) / Area(s) Affected:
Theming
How Has This Been Tested?
Unit tests
Manual testing
Automated e2e tests
New Sass specs in
spec/_theme.spec.scss;npm run test:styles(45) andnpm run lint:stylespass.All presets, the Elements themes and a few scenarios compiled before and after. The only differences:
theme()withoutcore()adds the core styles;core(), the six spacing aliases are declared twice, with the same values;--sb-sizeis gone;.ig-scrollbaris still emitted once.Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)