@@ -47,7 +47,7 @@ governing permissions and limitations under the License.
4747	--spectrum-actionbutton-line-height :  var (--spectrum-actionbutton-height );
4848
4949	--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) );
5151	--spectrum-actionbutton-edge-to-visual :  var (--spectrum-component-edge-to-visual-100 );
5252	--spectrum-actionbutton-edge-to-text :  var (--spectrum-component-edge-to-text-100 );
5353	--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.
6666		--spectrum-actionbutton-background-color-focus :  var (--spectrum-gray-200 );
6767		--spectrum-actionbutton-background-color-disabled :  transparent;
6868
69- 		& : has ([aria-pressed = "true" ]) {
69+ 		& : is ([aria-pressed = "true" ]) {
7070			--spectrum-actionbutton-background-color-disabled :  var (--spectrum-disabled-background-color );
7171		}
7272	}
@@ -119,7 +119,7 @@ governing permissions and limitations under the License.
119119		}
120120	}
121121
122- 	& : has ([aria-pressed = "true" ]) {
122+ 	& : is ([aria-pressed = "true" ]) {
123123		--mod-actionbutton-background-color-default :  var (--mod-actionbutton-background-color-default-selected ,  var (--spectrum-neutral-background-color-selected-default ));
124124		--mod-actionbutton-background-color-hover :  var (--mod-actionbutton-background-color-hover-selected ,  var (--spectrum-neutral-background-color-selected-hover ));
125125		--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.
179179	--spectrum-actionbutton-icon-size :  var (--spectrum-workflow-icon-size-50 );
180180	--spectrum-actionbutton-font-size :  var (--spectrum-font-size-50 );
181181	--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) );
183183	--spectrum-actionbutton-edge-to-visual :  var (--spectrum-component-edge-to-visual-50 );
184184	--spectrum-actionbutton-edge-to-text :  var (--spectrum-component-edge-to-text-50 );
185185	--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.
196196	--spectrum-actionbutton-icon-size :  var (--spectrum-workflow-icon-size-75 );
197197	--spectrum-actionbutton-font-size :  var (--spectrum-font-size-75 );
198198	--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) );
200200	--spectrum-actionbutton-edge-to-visual :  var (--spectrum-component-edge-to-visual-75 );
201201	--spectrum-actionbutton-edge-to-text :  var (--spectrum-component-edge-to-text-75 );
202202	--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.
213213	--spectrum-actionbutton-icon-size :  var (--spectrum-workflow-icon-size-200 );
214214	--spectrum-actionbutton-font-size :  var (--spectrum-font-size-200 );
215215	--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) );
217217	--spectrum-actionbutton-edge-to-visual :  var (--spectrum-component-edge-to-visual-200 );
218218	--spectrum-actionbutton-edge-to-text :  var (--spectrum-component-edge-to-text-200 );
219219	--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.
228228	--spectrum-actionbutton-icon-size :  var (--spectrum-workflow-icon-size-300 );
229229	--spectrum-actionbutton-font-size :  var (--spectrum-font-size-300 );
230230	--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) );
232232	--spectrum-actionbutton-edge-to-visual :  var (--spectrum-component-edge-to-visual-300 );
233233	--spectrum-actionbutton-edge-to-text :  var (--spectrum-component-edge-to-text-300 );
234234	--spectrum-actionbutton-edge-to-visual-only :  var (--spectrum-component-edge-to-visual-only-300 );
@@ -314,10 +314,22 @@ a.spectrum-ActionButton {
314314
315315.spectrum-ActionButton-hold  {
316316	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;
319320	color :  inherit;
321+ 	background-color :  currentColor;
320322	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);
321333}
322334
323335/* Focus indicator */ 
@@ -389,7 +401,7 @@ a.spectrum-ActionButton {
389401			--highcontrast-actionbutton-background-color-disabled :  Canvas;
390402			--highcontrast-actionbutton-content-color-default :  CanvasText;
391403
392- 			& : disabled : not (: has ([aria-pressed = "true" ])) {
404+ 			& : disabled : not (: is ([aria-pressed = "true" ])) {
393405				--highcontrast-actionbutton-border-color :  Canvas;
394406			}
395407		}
@@ -402,7 +414,7 @@ a.spectrum-ActionButton {
402414		}
403415
404416		/* Selected always shows as a solid highlighted color. */ 
405- 		& : has ([aria-pressed = "true" ]) {
417+ 		& : is ([aria-pressed = "true" ]) {
406418			--highcontrast-actionbutton-border-color :  Highlight;
407419			--highcontrast-actionbutton-background-color-default :  Highlight;
408420			--highcontrast-actionbutton-content-color-default :  HighlightText;
0 commit comments