You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find mat-button-toggle the worst component of Angular Material.
Reacted by Mohamed Refaat, Tawani Anyangwe, Jordan, Kim100199, Andreas Herz, Selem Essaied, Vanden-Bos, Abdullah Mohammad, tanvidozee, Robert D'Errico and 1 more
For bug 1:
The problem is in color: white, you have to set it on .mat-button-toggle-checked button to avoid it. Unfortunately it works only with ::ng-deep. https://stackblitz.com/edit/angular-ivjb9g-sse7ch
On the other hand such overrides should be a part of your custom material theme, so just put it in your theme.scss:
Activity
fix(button-toggle): unable to override elevation and high contrast st…
wottpal commentedon Mar 24, 2019
Does anybody know a temporary fix? :)
fix(button-toggle): unable to override elevation and high contrast st…
fix(button-toggle): unable to override elevation and high contrast st…
fix(button-toggle): unable to override elevation and high contrast st…
skobak commentedon Jul 2, 2020
A bit ugly hack, but works
blogcraft commentedon Jan 4, 2021
I find mat-button-toggle the worst component of Angular Material.
tawani commentedon Apr 3, 2021
It is as if they literally wanted to make it horrible.
fix(material/button-toggle): unable to override elevation and high co…
fix(material/button-toggle): unable to override elevation and high co…
zzeneg commentedon Sep 21, 2021
For bug 1:
The problem is in
color: white, you have to set it on.mat-button-toggle-checked buttonto avoid it. Unfortunately it works only with::ng-deep. https://stackblitz.com/edit/angular-ivjb9g-sse7chOn the other hand such overrides should be a part of your custom material theme, so just put it in your theme.scss:
fix(material/button-toggle): unable to override elevation and high co…
fix(material/button-toggle): unable to override elevation and high co…
angular-automatic-lock-bot commentedon Mar 23, 2022
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.
fix(material/button-toggle): unable to override elevation and high co…