@@ -47,7 +47,7 @@ governing permissions and limitations under the License.
47
47
--spectrum-actionbutton-line-height : var (--spectrum-actionbutton-height );
48
48
49
49
--spectrum-actionbutton-text-to-visual : var (--spectrum-text-to-visual-100 );
50
- --spectrum-actionbutton-edge-to-hold-icon : var (--spectrum-action-button-edge-to-hold-icon-medium );
50
+ --spectrum-actionbutton-edge-to-hold-icon : var (--mod-actionbutton-edge-to-hold-icon , var ( -- spectrum-action-button-edge-to-hold-icon-medium) );
51
51
--spectrum-actionbutton-edge-to-visual : var (--spectrum-component-edge-to-visual-100 );
52
52
--spectrum-actionbutton-edge-to-text : var (--spectrum-component-edge-to-text-100 );
53
53
--spectrum-actionbutton-edge-to-visual-only : var (--spectrum-component-edge-to-visual-only-100 );
@@ -66,7 +66,7 @@ governing permissions and limitations under the License.
66
66
--spectrum-actionbutton-background-color-focus : var (--spectrum-gray-200 );
67
67
--spectrum-actionbutton-background-color-disabled : transparent;
68
68
69
- & : has ([aria-pressed = "true" ]) {
69
+ & : is ([aria-pressed = "true" ]) {
70
70
--spectrum-actionbutton-background-color-disabled : var (--spectrum-disabled-background-color );
71
71
}
72
72
}
@@ -119,7 +119,7 @@ governing permissions and limitations under the License.
119
119
}
120
120
}
121
121
122
- & : has ([aria-pressed = "true" ]) {
122
+ & : is ([aria-pressed = "true" ]) {
123
123
--mod-actionbutton-background-color-default : var (--mod-actionbutton-background-color-default-selected , var (--spectrum-neutral-background-color-selected-default ));
124
124
--mod-actionbutton-background-color-hover : var (--mod-actionbutton-background-color-hover-selected , var (--spectrum-neutral-background-color-selected-hover ));
125
125
--mod-actionbutton-background-color-down : var (--mod-actionbutton-background-color-down-selected , var (--spectrum-neutral-background-color-selected-down ));
@@ -179,7 +179,7 @@ governing permissions and limitations under the License.
179
179
--spectrum-actionbutton-icon-size : var (--spectrum-workflow-icon-size-50 );
180
180
--spectrum-actionbutton-font-size : var (--spectrum-font-size-50 );
181
181
--spectrum-actionbutton-text-to-visual : var (--spectrum-text-to-visual-50 );
182
- --spectrum-actionbutton-edge-to-hold-icon : var (--spectrum-action-button-edge-to-hold-icon-extra-small );
182
+ --spectrum-actionbutton-edge-to-hold-icon : var (--mod-actionbutton-edge-to-hold-icon , var ( -- spectrum-action-button-edge-to-hold-icon-extra-small) );
183
183
--spectrum-actionbutton-edge-to-visual : var (--spectrum-component-edge-to-visual-50 );
184
184
--spectrum-actionbutton-edge-to-text : var (--spectrum-component-edge-to-text-50 );
185
185
--spectrum-actionbutton-edge-to-visual-only : var (--spectrum-component-edge-to-visual-only-50 );
@@ -196,7 +196,7 @@ governing permissions and limitations under the License.
196
196
--spectrum-actionbutton-icon-size : var (--spectrum-workflow-icon-size-75 );
197
197
--spectrum-actionbutton-font-size : var (--spectrum-font-size-75 );
198
198
--spectrum-actionbutton-text-to-visual : var (--spectrum-text-to-visual-75 );
199
- --spectrum-actionbutton-edge-to-hold-icon : var (--spectrum-action-button-edge-to-hold-icon-small );
199
+ --spectrum-actionbutton-edge-to-hold-icon : var (--mod-actionbutton-edge-to-hold-icon , var ( -- spectrum-action-button-edge-to-hold-icon-small) );
200
200
--spectrum-actionbutton-edge-to-visual : var (--spectrum-component-edge-to-visual-75 );
201
201
--spectrum-actionbutton-edge-to-text : var (--spectrum-component-edge-to-text-75 );
202
202
--spectrum-actionbutton-edge-to-visual-only : var (--spectrum-component-edge-to-visual-only-75 );
@@ -213,7 +213,7 @@ governing permissions and limitations under the License.
213
213
--spectrum-actionbutton-icon-size : var (--spectrum-workflow-icon-size-200 );
214
214
--spectrum-actionbutton-font-size : var (--spectrum-font-size-200 );
215
215
--spectrum-actionbutton-text-to-visual : var (--spectrum-text-to-visual-200 );
216
- --spectrum-actionbutton-edge-to-hold-icon : var (--spectrum-action-button-edge-to-hold-icon-large );
216
+ --spectrum-actionbutton-edge-to-hold-icon : var (--mod-actionbutton-edge-to-hold-icon , var ( -- spectrum-action-button-edge-to-hold-icon-large) );
217
217
--spectrum-actionbutton-edge-to-visual : var (--spectrum-component-edge-to-visual-200 );
218
218
--spectrum-actionbutton-edge-to-text : var (--spectrum-component-edge-to-text-200 );
219
219
--spectrum-actionbutton-edge-to-visual-only : var (--spectrum-component-edge-to-visual-only-200 );
@@ -228,7 +228,7 @@ governing permissions and limitations under the License.
228
228
--spectrum-actionbutton-icon-size : var (--spectrum-workflow-icon-size-300 );
229
229
--spectrum-actionbutton-font-size : var (--spectrum-font-size-300 );
230
230
--spectrum-actionbutton-text-to-visual : var (--spectrum-text-to-visual-300 );
231
- --spectrum-actionbutton-edge-to-hold-icon : var (--spectrum-action-button-edge-to-hold-icon-extra-large );
231
+ --spectrum-actionbutton-edge-to-hold-icon : var (--mod-actionbutton-edge-to-hold-icon , var ( -- spectrum-action-button-edge-to-hold-icon-extra-large) );
232
232
--spectrum-actionbutton-edge-to-visual : var (--spectrum-component-edge-to-visual-300 );
233
233
--spectrum-actionbutton-edge-to-text : var (--spectrum-component-edge-to-text-300 );
234
234
--spectrum-actionbutton-edge-to-visual-only : var (--spectrum-component-edge-to-visual-only-300 );
@@ -314,10 +314,22 @@ a.spectrum-ActionButton {
314
314
315
315
.spectrum-ActionButton-hold {
316
316
position : absolute;
317
- inset-inline-end : calc (var (--mod-actionbutton-edge-to-hold-icon , var (--spectrum-actionbutton-edge-to-hold-icon )) - var (--spectrum-actionbutton-border-width ));
318
- inset-block-end : calc (var (--mod-actionbutton-edge-to-hold-icon , var (--spectrum-actionbutton-edge-to-hold-icon )) - var (--spectrum-actionbutton-border-width ));
317
+ inset-inline-end : calc (var (--spectrum-actionbutton-edge-to-hold-icon ) - var (--spectrum-actionbutton-border-width ));
318
+ inset-block-end : calc (var (--spectrum-actionbutton-edge-to-hold-icon ) - var (--spectrum-actionbutton-border-width ));
319
+ display : block;
319
320
color : inherit;
321
+ background-color : currentColor;
320
322
transform : var (--spectrum-logical-rotation );
323
+
324
+ inline-size : 5px ;
325
+ block-size : 5px ;
326
+
327
+ /**
328
+ * A few things to note here:
329
+ * - cw = clockwise, ccw = counter-clockwise
330
+ */
331
+ aspect-ratio : 1 ;
332
+ clip-path : shape (from 2.96% 82.89% , line to 82.92% 2.91% , arc to 100% 9.98% of 9.89% 9.84% small cw, vline to 84.97% , arc by -15.02% 15.03% of 15.02% 15.03% small cw, hline to 10.03% , arc by -7.09% -17.11% of 10.01% 10.02% small cw);
321
333
}
322
334
323
335
/* Focus indicator */
@@ -389,7 +401,7 @@ a.spectrum-ActionButton {
389
401
--highcontrast-actionbutton-background-color-disabled : Canvas;
390
402
--highcontrast-actionbutton-content-color-default : CanvasText;
391
403
392
- & : disabled : not (: has ([aria-pressed = "true" ])) {
404
+ & : disabled : not (: is ([aria-pressed = "true" ])) {
393
405
--highcontrast-actionbutton-border-color : Canvas;
394
406
}
395
407
}
@@ -402,7 +414,7 @@ a.spectrum-ActionButton {
402
414
}
403
415
404
416
/* Selected always shows as a solid highlighted color. */
405
- & : has ([aria-pressed = "true" ]) {
417
+ & : is ([aria-pressed = "true" ]) {
406
418
--highcontrast-actionbutton-border-color : Highlight;
407
419
--highcontrast-actionbutton-background-color-default : Highlight;
408
420
--highcontrast-actionbutton-content-color-default : HighlightText;
0 commit comments