@material/typography
Advanced tools
Comparing version 0.28.0 to 0.34.0
{ | ||
"name": "@material/typography", | ||
"description": "Typography classes, mixins, and variables for Material Components for the web", | ||
"version": "0.28.0", | ||
"version": "0.34.0", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -54,3 +54,3 @@ <!--docs: | ||
``` | ||
npm install --save @material/typography | ||
npm install @material/typography | ||
``` | ||
@@ -94,6 +94,3 @@ | ||
`mdc-typography--button` | Sets font properties as Button | ||
`mdc-typography--adjust-margin` | Positions text, used in conjunction with font classes above | ||
> **A note about `mdc-typography--adjust-margin`**, `mdc-typography--adjust-margin` will change the margin properties of the element it is applied to, to align text correctly. `mdc-typography--adjust-margin` should only be used in a text context; using this property on UI elements such as buttons may cause them to be positioned incorrectly. | ||
### Sass Variables and Mixins | ||
@@ -105,7 +102,4 @@ | ||
`mdc-typography($style)` | Applies one of the typography styles, including setting the font to Roboto | ||
`mdc-typography-adjust-margin($style)` | Positions text | ||
`mdc-typography-overflow-ellipsis` | Truncates overflow text to one line with an ellipsis | ||
> **A note about `mdc-typography-adjust-margin`**, `mdc-typography-adjust-margin` will change the margin properties of the element it is applied to, to align text correctly. `mdc-typography-adjust-margin` should only be used in a text context; using this property on UI elements such as buttons may cause them to be positioned incorrectly. | ||
> **A note about `mdc-typography-overflow-ellipsis`**, `mdc-typography-overflow-ellipsis` should only be used if the element is `display: block` or `display: inline-block`. | ||
@@ -115,3 +109,3 @@ | ||
These styles can be used as the `$style` argument for `mdc-typography` and `mdc-typography-adjust-margin` mixins. | ||
These styles can be used as the `$style` argument for `mdc-typography` mixin. | ||
@@ -118,0 +112,0 @@ * `display4` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16445
148
120