Skip to content
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

feat(material-experimental/mdc-core): add missing color, density, typography mixins #24063

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

mmalerba
Copy link
Contributor

@mmalerba mmalerba commented Dec 6, 2021

No description provided.

@mmalerba mmalerba added P2 The issue is important to a large percentage of users, with a workaround G This is is related to a Google internal issue target: patch This PR is targeted for the next patch release labels Dec 6, 2021
@use './option/option-theme';
@use './option/optgroup-theme';
@use './elevation';


@mixin color($config-or-theme) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to be the equivalent of the non-MDC core theme? If yes, it needs some more styles like the ripple and pseudo checkbox.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

currently we don't have an MDC-based ripple or pseudo checkbox. I think this should be everything for now

Copy link
Member

Choose a reason for hiding this comment

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

Couldn't we include the non-MDC ripple here and use this mixin instead of the non-MDC one? Currently we include a bunch of unnecessary styles in the prebuilt themes, because we go through the non-MDC core mixin which contains the typographies of all non-MDC components. If you're blocked on this, it could be done in a follow-up.

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 don't think that would be a good idea, usually people include both the old mixins and new mixins while they're migrating, so if we did that we'd wind up with double the bytes

Copy link
Member

Choose a reason for hiding this comment

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

That's basically what we've been doing with the TS code though.

@mmalerba mmalerba force-pushed the core-theme branch 2 times, most recently from cfcdb93 to e15b582 Compare December 7, 2021 19:20
@mmalerba mmalerba added merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed and removed merge: fix commit message When the PR is merged, rewrites/fixups of the commit messages are needed labels Dec 8, 2021
@mmalerba mmalerba changed the title feat(material-excperimental/mdc-core): add missing color, density, typography mixins feat(material-experimental/mdc-core): add missing color, density, typography mixins Dec 8, 2021
@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Dec 8, 2021
@amysorto amysorto added target: minor This PR is targeted for the next minor release and removed target: patch This PR is targeted for the next patch release labels Dec 9, 2021
@amysorto amysorto merged commit 723b77a into angular:master Dec 9, 2021
@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 Jan 9, 2022
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 G This is is related to a Google internal issue P2 The issue is important to a large percentage of users, with a workaround target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants