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
{{ message }}
Repository navigation
Button docs example differs from specification #9360
Per specification, FABs should have the accent color if no color attribute is given. Embedded example in the docs shows the Basic FAB in white.
Buttons example should look the same in stackblitz and the embedded docs version.
What is the current behavior?
On stackblitz: FAB button without a color attribute is in the accent color as specified.
In docs: FAB button without a color attribute has no background. (Basic).
Same issue for my local project. My fab buttons have no color attribute and in non-prod builds, the buttons are correctly styled with accent palette. But during angular-cli production builds, the fab buttons have no default color.
I'm looking into this. It looks like something in the production pipeline of the Angular CLI removes some necessary code (looks like the build-optimizer in combination with uglify)
Activity
ravishivt commentedon Jan 13, 2018
Same issue for my local project. My fab buttons have no color attribute and in non-prod builds, the buttons are correctly styled with accent palette. But during angular-cli production builds, the fab buttons have no default color.
devversion commentedon Jan 13, 2018
I'm looking into this. It looks like something in the production pipeline of the Angular CLI removes some necessary code (looks like the build-optimizer in combination with uglify)
with build-optimizer disabled

_with build-optimizer enabled

fix(button): accent color not set on fab buttons with build optimizer
fix(button): accent color not set on fab buttons with build optimizer
fix(button): accent color not set on fab buttons with build optimizer
fix(button): accent color not set on fab buttons with build optimizer (…
fix(button): accent color not set on fab buttons with build optimizer (…
angular-automatic-lock-bot commentedon Sep 8, 2019
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.