Skip to content

Conversation

@oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jun 10, 2018

Based on the issue history and my needs at the office, it can be quite handy to be able to override all the variants at once. It's what theme.typography.variants is for. Use case: a global reset.

@mbrookes What do you think? Do you have a better wording in mind?

@oliviertassinari oliviertassinari added the type: new feature Expand the scope of the product to solve a new problem. label Jun 10, 2018
/* eslint-disable max-len */
// Close to the bootstrap implementation:
// https://github.com/twbs/bootstrap/blob/8fccaa2439e97ec72a4b7dc42ccc1f649790adb0/scss/mixins/_grid.scss#L41
/* eslint-enable max-len */
Copy link
Member Author

Choose a reason for hiding this comment

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

dead code

@oliviertassinari oliviertassinari self-assigned this Jun 10, 2018
@mbrookes
Copy link
Member

mbrookes commented Jun 11, 2018

Tricky. Just some ideas (not saying these are better): theme.typography.allVariants, theme.typography.all, theme.typography.global, theme.typography.globalCSS?

@oliviertassinari
Copy link
Member Author

oliviertassinari commented Jun 11, 2018

all, allVariants, I like that

@oliviertassinari oliviertassinari merged commit 3ba7256 into mui:master Jun 11, 2018
@oliviertassinari oliviertassinari deleted the typography-variants branch June 11, 2018 19:01
@oliviertassinari oliviertassinari changed the title [typography] Add a variants key in the theme [typography] Add a allVariants key in the theme Jun 11, 2018
@franklixuefei
Copy link
Contributor

Seems like the typescript definition is not updated. I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants