diff --git a/packages/mdc-button/README.md b/packages/mdc-button/README.md index 708d1f70033..f20d6e982e3 100644 --- a/packages/mdc-button/README.md +++ b/packages/mdc-button/README.md @@ -201,7 +201,7 @@ Mixin | Description `mdc-button-ink-color($color)` | Sets the ink color to the given color for an enabled button, and sets the icon color to the given color unless `mdc-button-icon-color` is also used. `mdc-button-disabled-ink-color($color)` | Sets the ink color to the given color for a disabled button, and sets the icon color to the given color unless `mdc-button-icon-color` is also used. `mdc-button-density($density-scale)` | Sets density scale for button. Supported density scale values (`-3`, `-2`, `-1`, `0`). -`mdc-button-height($height)` | Sets custom height of button. +`mdc-button-height($height)` | Sets custom height for button. `mdc-button-shape-radius($radius, $density-scale, $rtl-reflexive)` | Sets rounded shape to button with given radius size. `$density-scale` is only required when `$radius` value is in percentage unit, defaults to `$mdc-button-density-default-scale`. Set `$rtl-reflexive` to true to flip radius values in RTL context, defaults to false. `mdc-button-horizontal-padding($padding)` | Sets horizontal padding to the given number. `mdc-button-outline-color($color)` | Sets the outline color to the given color for an enabled button. diff --git a/packages/mdc-button/_mixins.scss b/packages/mdc-button/_mixins.scss index 94134420f23..f22d5c93bd6 100644 --- a/packages/mdc-button/_mixins.scss +++ b/packages/mdc-button/_mixins.scss @@ -316,7 +316,11 @@ $mdc-button-ripple-target: ".mdc-button__ripple"; } } -@mixin mdc-button-height($height, $query: $query) { +/// +/// Sets custom height for button. +/// @param {Number} $height - Height of button in `px`. +/// +@mixin mdc-button-height($height, $query: mdc-feature-all()) { $feat-structure: mdc-feature-create-target($query, structure); @include mdc-feature-targets($feat-structure) {