Closed ramensp closed 5 months ago
Yes, calling both button-theme
and all-components-theme
mixins will result in duplicate styles. Under the hood, all-component-theme
calls all of the other theme mixins.
In our theming guide, we suggest calling the individual component mixins to avoid this extra CSS as you noted.
It seems like in your case you are missing some mixin calls. You will also need to include fab-theme
, input-theme
, and icon-theme
. Let me know if that solves this for you, thanks for using M3!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
Documentation Feedback
Hi, if I want to set 2 themes as described in the docs, essential styles are missing.
I created my themes with
ng generate @angular/material:m3-theme
dependencies:
in the following examples it is missing but is included in the styles.scss
For example:
results in:
Note: the input at the top and the icons at the bottom
Note: "Show all properties (57 more)" at the bottom
results in:
Note: the input at the top and the icons at the bottom
Note: "Show all properties (800 more)" at the bottom
If I use all 3 together, duplicate styles are generated
Affected documentation page
https://material.angular.io/guide/theming#defining-multiple-themes