@material/button
Advanced tools
Comparing version 0.34.1 to 0.35.0
{ | ||
"name": "@material/button", | ||
"description": "The Material Components for the web button component", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"license": "Apache 2.0", | ||
@@ -16,8 +16,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@material/elevation": "^0.34.0", | ||
"@material/ripple": "^0.34.1", | ||
"@material/rtl": "^0.34.0", | ||
"@material/theme": "^0.34.0", | ||
"@material/typography": "^0.34.0" | ||
"@material/elevation": "^0.35.0", | ||
"@material/ripple": "^0.35.0", | ||
"@material/rtl": "^0.35.0", | ||
"@material/theme": "^0.35.0", | ||
"@material/typography": "^0.35.0" | ||
} | ||
} |
@@ -58,5 +58,5 @@ <!--docs: | ||
Users can nest `mdc-button__icon` inside the button element to add an icon. The icon in button | ||
is set to 18px to meet legibility requirements. | ||
is set to 18px to meet legibility requirements. This element should also include `aria-hidden="true"`. | ||
We recommend you load [Material Icons](https://material.io/icons/) from Google Fonts | ||
We recommend you load [Material Icons](https://material.io/icons/) from Google Fonts: | ||
@@ -69,3 +69,3 @@ ```html | ||
<button class="mdc-button"> | ||
<i class="material-icons mdc-button__icon">favorite</i> | ||
<i class="material-icons mdc-button__icon" aria-hidden="true">favorite</i> | ||
Button | ||
@@ -79,3 +79,3 @@ </button> | ||
<button class="mdc-button"> | ||
<svg class="mdc-button__icon" xmlns="http://www.w3.org/2000/svg" viewBox="..."> | ||
<svg class="mdc-button__icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="..."> | ||
... | ||
@@ -96,3 +96,3 @@ </svg> | ||
`mdc-button--unelevated` | Optional, a contained button that is flush with the surface | ||
`mdc-button--stroked` | Optional, a contained button that is flush with the surface and has a visible border | ||
`mdc-button--outlined` | Optional, a contained button that is flush with the surface and has a visible border | ||
`mdc-button--dense` | Optional, compresses the button text to make it slightly smaller | ||
@@ -142,3 +142,3 @@ | ||
> **A note about advanced mixins**, The following mixins are intended for advanced users. These mixins will override the color of the container, ink, stroke or ripple. You can use all of them if you want to completely customize a Button. Or you can use only one of them, e.g. if you only need to override the ripple color. **It is up to you to pick container, ink, stroke and ripple colors that work together, and meet accessibility standards.** | ||
> **A note about advanced mixins**, The following mixins are intended for advanced users. These mixins will override the color of the container, ink, outline or ripple. You can use all of them if you want to completely customize a Button. Or you can use only one of them, e.g. if you only need to override the ripple color. **It is up to you to pick container, ink, outline and ripple colors that work together, and meet accessibility standards.** | ||
@@ -152,7 +152,9 @@ Mixin | Description | ||
`mdc-button-horizontal-padding($padding)` | Sets horizontal padding to the given number. | ||
`mdc-button-stroke-color($color)` | Sets the stroke color to the given color. | ||
`mdc-button-stroke-width($width, $padding)` | Sets the stroke width to the given number (defaults to 2px) and adjusts padding accordingly. `$padding` is only required in cases where `mdc-button-horizontal-padding` is also included with a custom value. | ||
`mdc-button-outline-color($color)` | Sets the outline color to the given color. | ||
`mdc-button-outline-width($width, $padding)` | Sets the outline width to the given number (defaults to 2px) and adjusts padding accordingly. `$padding` is only required in cases where `mdc-button-horizontal-padding` is also included with a custom value. | ||
The ripple effect for the Button component is styled using [MDC Ripple](../mdc-ripple) mixins. | ||
> **Note:** If you want to customize both horizontal padding and the outline width, simply include the `mdc-button-outline-width` mixin with both arguments. It will include `mdc-button-horizontal-padding` for you. | ||
#### Caveat: Edge and CSS Variables | ||
@@ -159,0 +161,0 @@ |
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
160
34266
316
+ Added@material/base@0.35.0(transitive)
+ Added@material/elevation@0.35.0(transitive)
+ Added@material/ripple@0.35.0(transitive)
+ Added@material/rtl@0.35.0(transitive)
+ Added@material/theme@0.35.0(transitive)
+ Added@material/typography@0.35.0(transitive)
- Removed@material/base@0.34.0(transitive)
- Removed@material/elevation@0.34.0(transitive)
- Removed@material/ripple@0.34.1(transitive)
- Removed@material/rtl@0.34.0(transitive)
- Removed@material/theme@0.34.0(transitive)
- Removed@material/typography@0.34.0(transitive)
Updated@material/elevation@^0.35.0
Updated@material/ripple@^0.35.0
Updated@material/rtl@^0.35.0
Updated@material/theme@^0.35.0
Updated@material/typography@^0.35.0