|
390 | 390 | /// @return {Map} A set of custom tokens for the mat-button
|
391 | 391 | @function text-button($systems, $exclude-hardcoded) {
|
392 | 392 | @return (
|
| 393 | + horizontal-padding: _hardcode(12px, $exclude-hardcoded), |
| 394 | + with-icon-horizontal-padding: _hardcode(16px, $exclude-hardcoded), |
| 395 | + icon-spacing: _hardcode(8px, $exclude-hardcoded), |
| 396 | + icon-offset: _hardcode(-4px, $exclude-hardcoded), |
393 | 397 | state-layer-color: map.get($systems, md-sys-color, primary),
|
394 | 398 | disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
395 | 399 | ripple-color: mat.private-safe-color-change(
|
|
408 | 412 | /// @return {Map} A set of custom tokens for the mat-flat-button
|
409 | 413 | @function filled-button($systems, $exclude-hardcoded) {
|
410 | 414 | @return (
|
| 415 | + horizontal-padding: _hardcode(24px, $exclude-hardcoded), |
| 416 | + icon-spacing: _hardcode(8px, $exclude-hardcoded), |
| 417 | + icon-offset: _hardcode(-8px, $exclude-hardcoded), |
411 | 418 | state-layer-color: map.get($systems, md-sys-color, on-primary),
|
412 | 419 | disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
413 | 420 | ripple-color: mat.private-safe-color-change(
|
|
426 | 433 | /// @return {Map} A set of custom tokens for the mat-raised-button
|
427 | 434 | @function elevated-button($systems, $exclude-hardcoded) {
|
428 | 435 | @return (
|
| 436 | + horizontal-padding: _hardcode(24px, $exclude-hardcoded), |
| 437 | + icon-spacing: _hardcode(8px, $exclude-hardcoded), |
| 438 | + icon-offset: _hardcode(-8px, $exclude-hardcoded), |
429 | 439 | state-layer-color: map.get($systems, md-sys-color, primary),
|
430 | 440 | disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
431 | 441 | ripple-color: mat.private-safe-color-change(
|
|
444 | 454 | /// @return {Map} A set of custom tokens for the mat-outlined-button
|
445 | 455 | @function outlined-button($systems, $exclude-hardcoded) {
|
446 | 456 | @return (
|
| 457 | + horizontal-padding: _hardcode(24px, $exclude-hardcoded), |
| 458 | + icon-spacing: _hardcode(8px, $exclude-hardcoded), |
| 459 | + icon-offset: _hardcode(-8px, $exclude-hardcoded), |
447 | 460 | state-layer-color: map.get($systems, md-sys-color, primary),
|
448 | 461 | disabled-state-layer-color: map.get($systems, md-sys-color, on-surface-variant),
|
449 | 462 | ripple-color: mat.private-safe-color-change(
|
|
0 commit comments