|
6 | 6 | @use './m3-fab'; |
7 | 7 |
|
8 | 8 | $fallbacks: m3-fab.get-tokens(); |
| 9 | +$indicator-border-width: focus-indicators-private.$default-border-width; |
| 10 | +$border-width: var(--mat-focus-indicator-border-width, #{$indicator-border-width}); |
| 11 | +$indicator-offset: calc(#{$border-width} + 2px); |
9 | 12 |
|
10 | 13 | .mat-mdc-fab-base { |
11 | 14 | @include vendor-prefixes.user-select(none); |
@@ -81,10 +84,9 @@ $fallbacks: m3-fab.get-tokens(); |
81 | 84 | } |
82 | 85 |
|
83 | 86 | .mat-focus-indicator::before { |
84 | | - $default-border-width: focus-indicators-private.$default-border-width; |
85 | | - $border-width: var(--mat-focus-indicator-border-width, #{$default-border-width}); |
86 | | - $offset: calc(#{$border-width} + 2px); |
87 | | - margin: calc(#{$offset} * -1); |
| 87 | + margin: calc(#{$indicator-offset} * -1); |
| 88 | + border-radius: calc(#{token-utils.slot(fab-container-shape, $fallbacks)} + |
| 89 | + #{$indicator-offset}); |
88 | 90 | } |
89 | 91 |
|
90 | 92 | @include button-base.mat-private-button-disabled { |
@@ -149,6 +151,11 @@ $fallbacks: m3-fab.get-tokens(); |
149 | 151 | box-shadow: token-utils.slot(fab-small-pressed-container-elevation-shadow, $fallbacks); |
150 | 152 | } |
151 | 153 |
|
| 154 | + .mat-focus-indicator::before { |
| 155 | + border-radius: calc(#{token-utils.slot(fab-small-container-shape, $fallbacks)} + |
| 156 | + #{$indicator-offset}); |
| 157 | + } |
| 158 | + |
152 | 159 | @include button-base.mat-private-button-disabled { |
153 | 160 | color: token-utils.slot(fab-small-disabled-state-foreground-color, $fallbacks); |
154 | 161 | background-color: token-utils.slot(fab-small-disabled-state-container-color, $fallbacks); |
|
0 commit comments