Skip to content

Bug Fix: Allow icons to be sized by both width and height #6709

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

Merged
merged 3 commits into from
Jan 30, 2024

Conversation

rileyajones
Copy link
Contributor

@rileyajones rileyajones commented Dec 21, 2023

Motivation for features / changes

During the mdc-migration I restyled all the buttons via #6608 and only recently noticed that the mat-calendar component (which is only used internally) looked pretty off...

To resolve this I am allowing button widths and heights to be set separately then overriding them in the internal date picker component (Googlers see cl/601592566).

Screenshots of UI changes (or N/A)

Before - https://screenshot.googleplex.com/AKuAQqzf9g6K2GF
After - https://screenshot.googleplex.com/7s6vm8SsajKg9v7

@rileyajones rileyajones requested a review from bmd3k December 21, 2023 22:41
@rileyajones rileyajones marked this pull request as ready for review December 21, 2023 22:41
.mat-mdc-button-touch-target {
height: 100%;
width: 100%;
::ng-deep :not(mat-calendar) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this breaks button styling across the entire app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have come up with an entirely new approach to this which should resolve this issue

@rileyajones rileyajones changed the title Bug Fix: Stop restyling mat-calendar icons Bug Fix: Allow icons to be sized by both width and height Jan 26, 2024
@rileyajones rileyajones requested a review from bmd3k January 26, 2024 00:03
@rileyajones rileyajones merged commit d6ad97e into tensorflow:master Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants