-
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(expansion-panel): arrow not centered vertically and incorrect title font weight #10503
fix(expansion-panel): arrow not centered vertically and incorrect title font weight #10503
Conversation
crisbeto
commented
Mar 20, 2018
- Fixes the arrow in the expansion panel header not being quite centered, due to it being based on a rotated CSS triangle. These changes switch to use an SVG which is much easier to reason about.
- Uses the correct font weight for the panel header's title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arrow positioning is actually fix/updated in #8199
@@ -56,4 +56,8 @@ | |||
.mat-expansion-panel-content { | |||
@include mat-typography-level-to-styles($config, body-1); | |||
} | |||
|
|||
.mat-expansion-panel-header-title { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
font-weight styling should go into @mixin mat-expansion-panel-typography
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is inside the typography mixin already.
@josephperrott can you take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…le font weight * Fixes the arrow in the expansion panel header not being quite centered, due to it being based on a rotated CSS triangle. These changes switch to use an SVG which is much easier to reason about. * Uses the correct font weight for the panel header's title.
4006dc7
to
d86a391
Compare
Currently the expansion panel arrow is drawn with borders which makes it difficult to center. It's also problematic in high contrast mode where it renders as a rectangle. We've wanted to fix this for a while, but it breaks a lot of internal screenshot tests (see angular#10503). These changes resolve the issue for apps using M3 by having two indicators that we toggle using tokens. Fixes angular#28037.
Closing in favor of #28603. |
Currently the expansion panel arrow is drawn with borders which makes it difficult to center. It's also problematic in high contrast mode where it renders as a rectangle. We've wanted to fix this for a while, but it breaks a lot of internal screenshot tests (see #10503). These changes resolve the issue for apps using M3 by having two indicators that we toggle using tokens. Fixes #28037.
Currently the expansion panel arrow is drawn with borders which makes it difficult to center. It's also problematic in high contrast mode where it renders as a rectangle. We've wanted to fix this for a while, but it breaks a lot of internal screenshot tests (see #10503). These changes resolve the issue for apps using M3 by having two indicators that we toggle using tokens. Fixes #28037. (cherry picked from commit 31102d0)
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. |