-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
fix(slide-toggle): incorrect text color when placed inside an overlay with a dark theme #18742
Conversation
… with a dark theme The slide toggle doesn't define its text color, but inherits it from the closest theme root element. The problem is that if the element is moved out to something like an overlay, the color may be inherited from the `body` which won't be correct. These changes explicitly set the `color`. Fixes angular#18701.
…h a dark theme This is along the same lines as angular#18742. The checkbox inherits its text color from the closest parent which may not be correct once the element is moved out into an overlay.
… dark theme Fixes a similar issue to angular#18742. The radio button inherits its text color from the closest parent which may not be correct once the element is moved out into an overlay.
@crisbeto ~51 screenshot targets failing on this one. Change seems like an improvement, but probably not worth the effort to approve all the diffs since MDC (probably?) fixes this also. |
…ay with a dark theme Fixes a similar issue to angular#18742. The radio button inherits its text color from the closest parent which may not be correct once the element is moved out into an overlay.
…erlay with a dark theme This is along the same lines as angular#18742. The checkbox inherits its text color from the closest parent which may not be correct once the element is moved out into an overlay.
Needs to be rebased and updated to the new theming API - you might want to just close this PR since it'll soon be deprecated and it sounds like theres a fair amount of screenshot issues on it |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The slide toggle doesn't define its text color, but inherits it from the closest theme root element. The problem is that if the element is moved out to something like an overlay, the color may be inherited from the
body
which won't be correct. These changes explicitly set thecolor
.Fixes #18701.