Skip to content

refactor(material-experimental/mdc-paginator): clean up theme sass #20925

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 1 commit into from
Nov 24, 2020

Conversation

mmalerba
Copy link
Contributor

No description provided.

@mmalerba mmalerba added the P2 The issue is important to a large percentage of users, with a workaround label Oct 29, 2020
@mmalerba mmalerba requested a review from jelbourn October 29, 2020 21:39
@mmalerba mmalerba requested a review from crisbeto as a code owner October 29, 2020 21:39
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 29, 2020
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

What exactly is broken in the dark theme? It seems to be working in the dev app.

@mmalerba
Copy link
Contributor Author

Hmm you're right, I migrated an internal app I made and it was broken there. I might need to look more into what the difference was between that app and our dev app. (Though even if this change isn't necessary I'd still like to submit it as it cleans up the theme code a bit. There's no reason to transform the mat color config to an MDC one if we're not passing it to MDC's mixins

@mmalerba mmalerba added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent and removed P2 The issue is important to a large percentage of users, with a workaround labels Oct 29, 2020
@mmalerba
Copy link
Contributor Author

It was something wrong with the live reload setup, did a fresh rebuild and it was fine. That said I do think this is valuable cleanup so leaving it open

@mmalerba mmalerba changed the title fix(material-experimental/mdc-paginator): fix broken dark theme refactor(material-experimental/mdc-paginator): clean up theme sass Oct 29, 2020
@jelbourn
Copy link
Member

@mmalerba could you amend the commit to be more specific about the nature of the cleanup?

@crisbeto
Copy link
Member

From what I can see, the change here is that we go through our own theming APIs instead of MDC's. I wrote the theme this way, because I was under the impression that we wanted to stick to MDC's theming API for the MDC-based components. We've been following a similar setup for all of the other ones under material-experimental.

@mmalerba
Copy link
Contributor Author

We still want to rely on our themeing system, the mat-using-mdc-theme mixin temporarily plugs values from our theme into MDC's global variables. We only need to use that when we're calling out to MDC's mixins. Eventually I hope to get rid of it entirely, since MDC is moving toward a system that looks more like ours - one where you pass config objects around rather than rely on global variables

remove usage of `mat-using-mdc-theme` since we're not calling our to
MDC's mixins for this component.
@mmalerba
Copy link
Contributor Author

updated the commit message with more info

@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label Nov 10, 2020
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Nov 12, 2020
@annieyw annieyw merged commit 78fc115 into angular:master Nov 24, 2020
annieyw pushed a commit that referenced this pull request Nov 24, 2020
…20925)

remove usage of `mat-using-mdc-theme` since we're not calling our to
MDC's mixins for this component.

(cherry picked from commit 78fc115)
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants