-
Notifications
You must be signed in to change notification settings - Fork 1.7k
MDC Migration: Globally restyle mat-icon-button
#6608
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
Changes from 4 commits
5e7b135
e0bace3
12c46a1
6543aca
d839bba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,10 @@ $metrics-min-card-height: 320px; | |
@mixin metrics-card-controls { | ||
@include tb-theme-foreground-prop(color, secondary-text); | ||
white-space: nowrap; | ||
|
||
// ::ng-deep button[mat-icon-button] { | ||
// font-size: 16px; | ||
// } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Can you address this comment I left previously? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch on the pin icon size. I removed the failed overrides. |
||
} | ||
|
||
@mixin metrics-empty-message { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,6 +291,36 @@ $tb-dark-theme: map_merge( | |
} | ||
} | ||
|
||
body, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To summarize various comments below:
|
||
body.dark-mode { | ||
a, | ||
button { | ||
&[mat-icon-button].mat-mdc-icon-button { | ||
width: 40px; | ||
height: 40px; | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: center; | ||
--tb-icon-size: 24px; | ||
|
||
.mat-mdc-button-touch-target { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
mat-icon.mat-icon { | ||
flex-shrink: 0; | ||
} | ||
|
||
mat-icon.mat-icon, | ||
svg { | ||
width: var(--tb-icon-size); | ||
height: var(--tb-icon-size); | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Cannot use `tb-dark-theme` as :host-context in the global stylesheet is | ||
// meaningless. | ||
body.dark-mode { | ||
|
Uh oh!
There was an error while loading. Please reload this page.