-
Notifications
You must be signed in to change notification settings - Fork 156
refactor(elements): component theme cb to update name/prefix and selector #12974
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(elements): component theme cb to update name/prefix and selector #12974
Conversation
|
|
||
| @include igx.core(); | ||
| @include igx.typography($font-family: igx.$bootstrap-typeface, $type-scale: igx.$bootstrap-type-scale); | ||
| @include igx.bootstrap-light-theme($palette: $palette, $exclude: vars.$unused-themes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only concern from moving away from using bootstrap-light-theme and so on - that mixin seems to do something extra, rather than using the light-bootstrap-palette directly for some reason:
igniteui-angular/projects/igniteui-angular/src/lib/core/styles/themes/generators/_bootstrap.scss
Lines 33 to 34 in 91669a6
| $surface: if($surface != #f8f9fa, $surface, #f8f9fa), | |
| $gray: #212529, |
Kinda odd
0e8daf2 to
318fb48
Compare
318fb48 to
8e0f62a
Compare
…ements-theme-shenanigans
…ements-theme-shenanigans
Goal: Update the component global CSS var prefixes when exposed as
igc-element in a mostly automated way without disturbing the base source too much. Could also help with adjusting selectors of exposed components instead of stacking them all in each component's theme as already done in the target branch.I've checked and as far as I see there are no references to the name of the theme and the only usage for the theme name is for CSS vars:
https://github.com/IgniteUI/igniteui-theming/blob/733926ee432cb66efdbe1045ddac5c51ea1bb071/sass/themes/_mixins.scss#L63
Also fixes #12956
Additional information (check all that apply):
Checklist:
feature/README.MDupdates for the feature docsREADME.MDCHANGELOG.MDupdates for newly added functionalityng updatemigrations for the breaking changes (migrations guidelines)