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(schematics): add prompt to add global typography class #17602

Merged
merged 1 commit into from
Nov 4, 2019

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
@@ -45,6 +47,23 @@ export function addThemeToAppStyles(options: Schema): (host: Tree) => Tree {
};
}

/** 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