Skip to content

Conversation

@crisbeto
Copy link
Member

@crisbeto crisbeto commented Nov 4, 2019

Adds a prompts to the ng-add schematic that allows the user to set the global mat-typography class on the body.

Note: not totally sure whether we allow the schematic changes to be merge safe.

Adds a prompts to the `ng-add` schematic that allows the user to set the global `mat-typography` class on the `body`.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: merge safe target: minor This PR is targeted for the next minor release labels Nov 4, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 4, 2019
}

/** Adds the global typography class to the body element. */
export function addTypographyClass(options: Schema): (host: Tree) => Tree {
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: I can see this going into a separate file, but I kept it here because the typography system is tied to the theming.

Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

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

LGTM. I think it's fine to be part of theming.ts

@devversion devversion added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Nov 4, 2019
@mmalerba mmalerba merged commit c08050d into angular:master Nov 4, 2019
@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 5, 2019
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: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants