@depict-ai/portal-components 2.7.33 → 2.7.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/main.js +24 -13
- package/dist/module.js +24 -13
- package/package.json +2 -2
- package/src/specialForShopify/DefaultSolidProductCard.tsx +17 -5
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SearchFilter } from "@depict-ai/types/api/SearchResponse";
|
|
|
4
4
|
import { Locale } from "@depict-ai/react-ui/locales/latest";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
import { FeaturedInDisplay } from "@depict-ai/types/api/FeaturedInResponseV3";
|
|
7
|
-
export const version = "2.7.
|
|
7
|
+
export const version = "2.7.34";
|
|
8
8
|
type TextOptions = {
|
|
9
9
|
/** Enabled */
|
|
10
10
|
enabled: boolean;
|
package/dist/main.js
CHANGED
|
@@ -20,7 +20,7 @@ $parcel$export(module.exports, "ExpandingSection", () => $2214dc111b9e2866$expor
|
|
|
20
20
|
$parcel$export(module.exports, "ReactLookCard", () => $35bab9ff48bfe404$export$48787da2a5568bc);
|
|
21
21
|
$parcel$export(module.exports, "version", () => $0a017be3a74fcc94$export$83d89fbfd8236492);
|
|
22
22
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
23
|
-
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.
|
|
23
|
+
const $0a017be3a74fcc94$export$83d89fbfd8236492 = "2.7.34";
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -148,13 +148,17 @@ overrideAspectRatio) {
|
|
|
148
148
|
(0, $7jsgb$solidjsweb.use)((el)=>props?.ref?.(el), _el$);
|
|
149
149
|
(0, $7jsgb$solidjsweb.insert)(_el$, ()=>props.children);
|
|
150
150
|
(0, $7jsgb$solidjsweb.effect)((_p$)=>{
|
|
151
|
-
var _v$ = props.class, _v$2 = variantToShow()?.page_url || "#";
|
|
151
|
+
var _v$ = props.class, _v$2 = variantToShow()?.page_url || "#", _v$3 = !props.focusable_, _v$4 = props.focusable_ ? undefined : -1;
|
|
152
152
|
_v$ !== _p$.e && (0, $7jsgb$solidjsweb.className)(_el$, _p$.e = _v$);
|
|
153
153
|
_v$2 !== _p$.t && (0, $7jsgb$solidjsweb.setAttribute)(_el$, "href", _p$.t = _v$2);
|
|
154
|
+
_v$3 !== _p$.a && (0, $7jsgb$solidjsweb.setAttribute)(_el$, "aria-hidden", _p$.a = _v$3);
|
|
155
|
+
_v$4 !== _p$.o && (0, $7jsgb$solidjsweb.setAttribute)(_el$, "tabindex", _p$.o = _v$4);
|
|
154
156
|
return _p$;
|
|
155
157
|
}, {
|
|
156
158
|
e: undefined,
|
|
157
|
-
t: undefined
|
|
159
|
+
t: undefined,
|
|
160
|
+
a: undefined,
|
|
161
|
+
o: undefined
|
|
158
162
|
});
|
|
159
163
|
return _el$;
|
|
160
164
|
})();
|
|
@@ -206,6 +210,7 @@ overrideAspectRatio) {
|
|
|
206
210
|
(0, $7jsgb$solidjsweb.addEventListener)(_el$3, "mouseenter", (0, $7jsgb$depictaiutilisharedlatest.catchify)(()=>!noHoverSupport_() && setCardIsHovered(true)));
|
|
207
211
|
(0, $7jsgb$solidjsweb.insert)(_el$3, (0, $7jsgb$solidjsweb.createComponent)(LinkWrapped, {
|
|
208
212
|
"class": "upper",
|
|
213
|
+
focusable_: true,
|
|
209
214
|
get children () {
|
|
210
215
|
return (0, $7jsgb$solidjsweb.createComponent)($3375ddd88f77967d$var$ImagesAndVideos, {
|
|
211
216
|
image_urls_: ()=>variantToShow()?.image_urls,
|
|
@@ -346,14 +351,15 @@ overrideAspectRatio) {
|
|
|
346
351
|
wrapperComponent_: ()=>containsColorSwatches() && LinkWrapped,
|
|
347
352
|
ref_: ref_
|
|
348
353
|
}),
|
|
349
|
-
HoveredComponent_: ({ ref_: ref_ })=>(0, $7jsgb$solidjsweb.createComponent)($3375ddd88f77967d$var$ColorSwatches, {
|
|
354
|
+
HoveredComponent_: ({ ref_: ref_, isHidden_: isHidden_ })=>(0, $7jsgb$solidjsweb.createComponent)($3375ddd88f77967d$var$ColorSwatches, {
|
|
350
355
|
colorMap_: colorMap,
|
|
351
356
|
showVariantIndex_: showVariantIndex,
|
|
352
357
|
setShowVariantIndex_: setShowVariantIndex,
|
|
353
358
|
colorsAtIndex_: ()=>variantDisplays()?.map((variant)=>variant.color_name),
|
|
354
359
|
ref_: ref_,
|
|
355
360
|
wantedContainerHeightRem_: swatchContainerHeight,
|
|
356
|
-
defaultVariantIndex_: defaultVariantIndex
|
|
361
|
+
defaultVariantIndex_: defaultVariantIndex,
|
|
362
|
+
isHidden_: isHidden_
|
|
357
363
|
}),
|
|
358
364
|
cardIsHovered_: cardIsHovered
|
|
359
365
|
});
|
|
@@ -473,13 +479,14 @@ overrideAspectRatio) {
|
|
|
473
479
|
ref_: (el)=>defaultElement = el
|
|
474
480
|
}),
|
|
475
481
|
(0, $7jsgb$solidjsweb.createComponent)(HoveredComponent_, {
|
|
476
|
-
ref_: (el)=>hoveredElement = el
|
|
482
|
+
ref_: (el)=>hoveredElement = el,
|
|
483
|
+
isHidden_: ()=>!cardIsHovered_()
|
|
477
484
|
})
|
|
478
485
|
];
|
|
479
486
|
}
|
|
480
487
|
});
|
|
481
488
|
}
|
|
482
|
-
function $3375ddd88f77967d$var$ColorSwatches({ colorMap_: colorMap_, setShowVariantIndex_: setShowVariantIndex_, showVariantIndex_: showVariantIndex_, colorsAtIndex_: colorsAtIndex_, wantedContainerHeightRem_: wantedContainerHeightRem_, defaultVariantIndex_: defaultVariantIndex_, ref_: ref_ }) {
|
|
489
|
+
function $3375ddd88f77967d$var$ColorSwatches({ colorMap_: colorMap_, setShowVariantIndex_: setShowVariantIndex_, showVariantIndex_: showVariantIndex_, colorsAtIndex_: colorsAtIndex_, wantedContainerHeightRem_: wantedContainerHeightRem_, defaultVariantIndex_: defaultVariantIndex_, ref_: ref_, isHidden_: isHidden_ }) {
|
|
483
490
|
let unHoverDebouncedTimeout;
|
|
484
491
|
const entriesToShow = ()=>[
|
|
485
492
|
...colorMap_().entries()
|
|
@@ -525,17 +532,21 @@ function $3375ddd88f77967d$var$ColorSwatches({ colorMap_: colorMap_, setShowVari
|
|
|
525
532
|
(0, $7jsgb$solidjsweb.setAttribute)(_el$6, "href", pageUrl_);
|
|
526
533
|
(0, $7jsgb$solidjsweb.setAttribute)(_el$6, "title", colorName);
|
|
527
534
|
(0, $7jsgb$solidjsweb.effect)((_p$)=>{
|
|
528
|
-
var _v$
|
|
529
|
-
_p$.e
|
|
530
|
-
_v$
|
|
531
|
-
|
|
532
|
-
_v$
|
|
535
|
+
var _v$5 = isHidden_?.(), _v$6 = isHidden_?.() ? -1 : undefined, _v$7 = `--background:${invalidColor() ? "white" : hexColor_}`, _v$8 = !!(colorsAtIndex_()?.[showVariantIndex_()] === colorName), _v$9 = !!thisColorIsDefaultColor(), _v$10 = !!($3375ddd88f77967d$var$isLightColor(hexColor_) || invalidColor());
|
|
536
|
+
_v$5 !== _p$.e && (0, $7jsgb$solidjsweb.setAttribute)(_el$6, "aria-hidden", _p$.e = _v$5);
|
|
537
|
+
_v$6 !== _p$.t && (0, $7jsgb$solidjsweb.setAttribute)(_el$6, "tabindex", _p$.t = _v$6);
|
|
538
|
+
_p$.a = (0, $7jsgb$solidjsweb.style)(_el$6, _v$7, _p$.a);
|
|
539
|
+
_v$8 !== _p$.o && _el$6.classList.toggle("selected", _p$.o = _v$8);
|
|
540
|
+
_v$9 !== _p$.i && _el$6.classList.toggle("first", _p$.i = _v$9);
|
|
541
|
+
_v$10 !== _p$.n && _el$6.classList.toggle("light-colored", _p$.n = _v$10);
|
|
533
542
|
return _p$;
|
|
534
543
|
}, {
|
|
535
544
|
e: undefined,
|
|
536
545
|
t: undefined,
|
|
537
546
|
a: undefined,
|
|
538
|
-
o: undefined
|
|
547
|
+
o: undefined,
|
|
548
|
+
i: undefined,
|
|
549
|
+
n: undefined
|
|
539
550
|
});
|
|
540
551
|
return _el$6;
|
|
541
552
|
})();
|
package/dist/module.js
CHANGED
|
@@ -7,7 +7,7 @@ import {createContext as $2MCgq$createContext, createMemo as $2MCgq$createMemo,
|
|
|
7
7
|
import {createPortal as $2MCgq$createPortal} from "react-dom";
|
|
8
8
|
|
|
9
9
|
/*! Depict.ai portal components */ // This is where the actual source of your React stuff should live
|
|
10
|
-
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.
|
|
10
|
+
const $91c11b750e80ede3$export$83d89fbfd8236492 = "2.7.34";
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -135,13 +135,17 @@ overrideAspectRatio) {
|
|
|
135
135
|
(0, $2MCgq$use)((el)=>props?.ref?.(el), _el$);
|
|
136
136
|
(0, $2MCgq$insert)(_el$, ()=>props.children);
|
|
137
137
|
(0, $2MCgq$effect)((_p$)=>{
|
|
138
|
-
var _v$ = props.class, _v$2 = variantToShow()?.page_url || "#";
|
|
138
|
+
var _v$ = props.class, _v$2 = variantToShow()?.page_url || "#", _v$3 = !props.focusable_, _v$4 = props.focusable_ ? undefined : -1;
|
|
139
139
|
_v$ !== _p$.e && (0, $2MCgq$className)(_el$, _p$.e = _v$);
|
|
140
140
|
_v$2 !== _p$.t && (0, $2MCgq$setAttribute)(_el$, "href", _p$.t = _v$2);
|
|
141
|
+
_v$3 !== _p$.a && (0, $2MCgq$setAttribute)(_el$, "aria-hidden", _p$.a = _v$3);
|
|
142
|
+
_v$4 !== _p$.o && (0, $2MCgq$setAttribute)(_el$, "tabindex", _p$.o = _v$4);
|
|
141
143
|
return _p$;
|
|
142
144
|
}, {
|
|
143
145
|
e: undefined,
|
|
144
|
-
t: undefined
|
|
146
|
+
t: undefined,
|
|
147
|
+
a: undefined,
|
|
148
|
+
o: undefined
|
|
145
149
|
});
|
|
146
150
|
return _el$;
|
|
147
151
|
})();
|
|
@@ -193,6 +197,7 @@ overrideAspectRatio) {
|
|
|
193
197
|
(0, $2MCgq$addEventListener)(_el$3, "mouseenter", (0, $2MCgq$catchify)(()=>!noHoverSupport_() && setCardIsHovered(true)));
|
|
194
198
|
(0, $2MCgq$insert)(_el$3, (0, $2MCgq$createComponent)(LinkWrapped, {
|
|
195
199
|
"class": "upper",
|
|
200
|
+
focusable_: true,
|
|
196
201
|
get children () {
|
|
197
202
|
return (0, $2MCgq$createComponent)($29535f590238371c$var$ImagesAndVideos, {
|
|
198
203
|
image_urls_: ()=>variantToShow()?.image_urls,
|
|
@@ -333,14 +338,15 @@ overrideAspectRatio) {
|
|
|
333
338
|
wrapperComponent_: ()=>containsColorSwatches() && LinkWrapped,
|
|
334
339
|
ref_: ref_
|
|
335
340
|
}),
|
|
336
|
-
HoveredComponent_: ({ ref_: ref_ })=>(0, $2MCgq$createComponent)($29535f590238371c$var$ColorSwatches, {
|
|
341
|
+
HoveredComponent_: ({ ref_: ref_, isHidden_: isHidden_ })=>(0, $2MCgq$createComponent)($29535f590238371c$var$ColorSwatches, {
|
|
337
342
|
colorMap_: colorMap,
|
|
338
343
|
showVariantIndex_: showVariantIndex,
|
|
339
344
|
setShowVariantIndex_: setShowVariantIndex,
|
|
340
345
|
colorsAtIndex_: ()=>variantDisplays()?.map((variant)=>variant.color_name),
|
|
341
346
|
ref_: ref_,
|
|
342
347
|
wantedContainerHeightRem_: swatchContainerHeight,
|
|
343
|
-
defaultVariantIndex_: defaultVariantIndex
|
|
348
|
+
defaultVariantIndex_: defaultVariantIndex,
|
|
349
|
+
isHidden_: isHidden_
|
|
344
350
|
}),
|
|
345
351
|
cardIsHovered_: cardIsHovered
|
|
346
352
|
});
|
|
@@ -460,13 +466,14 @@ overrideAspectRatio) {
|
|
|
460
466
|
ref_: (el)=>defaultElement = el
|
|
461
467
|
}),
|
|
462
468
|
(0, $2MCgq$createComponent)(HoveredComponent_, {
|
|
463
|
-
ref_: (el)=>hoveredElement = el
|
|
469
|
+
ref_: (el)=>hoveredElement = el,
|
|
470
|
+
isHidden_: ()=>!cardIsHovered_()
|
|
464
471
|
})
|
|
465
472
|
];
|
|
466
473
|
}
|
|
467
474
|
});
|
|
468
475
|
}
|
|
469
|
-
function $29535f590238371c$var$ColorSwatches({ colorMap_: colorMap_, setShowVariantIndex_: setShowVariantIndex_, showVariantIndex_: showVariantIndex_, colorsAtIndex_: colorsAtIndex_, wantedContainerHeightRem_: wantedContainerHeightRem_, defaultVariantIndex_: defaultVariantIndex_, ref_: ref_ }) {
|
|
476
|
+
function $29535f590238371c$var$ColorSwatches({ colorMap_: colorMap_, setShowVariantIndex_: setShowVariantIndex_, showVariantIndex_: showVariantIndex_, colorsAtIndex_: colorsAtIndex_, wantedContainerHeightRem_: wantedContainerHeightRem_, defaultVariantIndex_: defaultVariantIndex_, ref_: ref_, isHidden_: isHidden_ }) {
|
|
470
477
|
let unHoverDebouncedTimeout;
|
|
471
478
|
const entriesToShow = ()=>[
|
|
472
479
|
...colorMap_().entries()
|
|
@@ -512,17 +519,21 @@ function $29535f590238371c$var$ColorSwatches({ colorMap_: colorMap_, setShowVari
|
|
|
512
519
|
(0, $2MCgq$setAttribute)(_el$6, "href", pageUrl_);
|
|
513
520
|
(0, $2MCgq$setAttribute)(_el$6, "title", colorName);
|
|
514
521
|
(0, $2MCgq$effect)((_p$)=>{
|
|
515
|
-
var _v$
|
|
516
|
-
_p$.e
|
|
517
|
-
_v$
|
|
518
|
-
|
|
519
|
-
_v$
|
|
522
|
+
var _v$5 = isHidden_?.(), _v$6 = isHidden_?.() ? -1 : undefined, _v$7 = `--background:${invalidColor() ? "white" : hexColor_}`, _v$8 = !!(colorsAtIndex_()?.[showVariantIndex_()] === colorName), _v$9 = !!thisColorIsDefaultColor(), _v$10 = !!($29535f590238371c$var$isLightColor(hexColor_) || invalidColor());
|
|
523
|
+
_v$5 !== _p$.e && (0, $2MCgq$setAttribute)(_el$6, "aria-hidden", _p$.e = _v$5);
|
|
524
|
+
_v$6 !== _p$.t && (0, $2MCgq$setAttribute)(_el$6, "tabindex", _p$.t = _v$6);
|
|
525
|
+
_p$.a = (0, $2MCgq$style)(_el$6, _v$7, _p$.a);
|
|
526
|
+
_v$8 !== _p$.o && _el$6.classList.toggle("selected", _p$.o = _v$8);
|
|
527
|
+
_v$9 !== _p$.i && _el$6.classList.toggle("first", _p$.i = _v$9);
|
|
528
|
+
_v$10 !== _p$.n && _el$6.classList.toggle("light-colored", _p$.n = _v$10);
|
|
520
529
|
return _p$;
|
|
521
530
|
}, {
|
|
522
531
|
e: undefined,
|
|
523
532
|
t: undefined,
|
|
524
533
|
a: undefined,
|
|
525
|
-
o: undefined
|
|
534
|
+
o: undefined,
|
|
535
|
+
i: undefined,
|
|
536
|
+
n: undefined
|
|
526
537
|
});
|
|
527
538
|
return _el$6;
|
|
528
539
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@depict-ai/portal-components",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.34",
|
|
4
4
|
"packageManager": "yarn@3.2.2",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@depict-ai/plp-styling": "^4.4.20",
|
|
105
105
|
"@depict-ai/react-ui": "^4.8.7",
|
|
106
106
|
"@depict-ai/types": "^5.4.5",
|
|
107
|
-
"@depict-ai/ui": "^4.8.
|
|
107
|
+
"@depict-ai/ui": "^4.8.29",
|
|
108
108
|
"@depict-ai/utilishared": "^2.4.7",
|
|
109
109
|
"parcel": "^2.10.3",
|
|
110
110
|
"solid-js": "^1.8.16"
|
|
@@ -191,12 +191,19 @@ export function DefaultSolidProductCard(
|
|
|
191
191
|
return Math.max(...considerSize);
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
const LinkWrapped = (props: {
|
|
194
|
+
const LinkWrapped = (props: {
|
|
195
|
+
children: JSX.Element;
|
|
196
|
+
class?: string;
|
|
197
|
+
ref?: (el: HTMLAnchorElement) => void;
|
|
198
|
+
focusable_?: boolean;
|
|
199
|
+
}) => (
|
|
195
200
|
<a
|
|
196
201
|
class={props.class}
|
|
197
202
|
href={variantToShow()?.page_url || "#"}
|
|
198
203
|
// Work around https://github.com/solidjs/solid/issues/2137
|
|
199
204
|
ref={el => props?.ref?.(el)}
|
|
205
|
+
aria-hidden={!props.focusable_}
|
|
206
|
+
tabIndex={props.focusable_ ? undefined : -1}
|
|
200
207
|
onClick={catchify(e => {
|
|
201
208
|
const { target } = e;
|
|
202
209
|
const navbuttonSelector = ".d-navbutton";
|
|
@@ -257,7 +264,7 @@ export function DefaultSolidProductCard(
|
|
|
257
264
|
onMouseEnter={catchify(() => !noHoverSupport_() && setCardIsHovered(true))}
|
|
258
265
|
onMouseLeave={catchify(() => !noHoverSupport_() && setCardIsHovered(false))}
|
|
259
266
|
>
|
|
260
|
-
<LinkWrapped class="upper">
|
|
267
|
+
<LinkWrapped class="upper" focusable_={true}>
|
|
261
268
|
<ImagesAndVideos
|
|
262
269
|
image_urls_={() => variantToShow()?.image_urls}
|
|
263
270
|
video_={() => variantToShow()?.video}
|
|
@@ -366,7 +373,7 @@ export function DefaultSolidProductCard(
|
|
|
366
373
|
ref_={ref_}
|
|
367
374
|
/>
|
|
368
375
|
)}
|
|
369
|
-
HoveredComponent_={({ ref_ }) => (
|
|
376
|
+
HoveredComponent_={({ ref_, isHidden_ }) => (
|
|
370
377
|
<ColorSwatches
|
|
371
378
|
colorMap_={colorMap}
|
|
372
379
|
showVariantIndex_={showVariantIndex}
|
|
@@ -375,6 +382,7 @@ export function DefaultSolidProductCard(
|
|
|
375
382
|
ref_={ref_}
|
|
376
383
|
wantedContainerHeightRem_={swatchContainerHeight}
|
|
377
384
|
defaultVariantIndex_={defaultVariantIndex}
|
|
385
|
+
isHidden_={isHidden_}
|
|
378
386
|
/>
|
|
379
387
|
)}
|
|
380
388
|
cardIsHovered_={cardIsHovered}
|
|
@@ -411,7 +419,7 @@ function AnimatedRowSwitch({
|
|
|
411
419
|
containerComponent_,
|
|
412
420
|
}: {
|
|
413
421
|
DefaultComponent_: (props: { ref_: (el: HTMLElement) => void }) => JSX.Element;
|
|
414
|
-
HoveredComponent_: (props: { ref_: (el: HTMLElement) => void }) => JSX.Element;
|
|
422
|
+
HoveredComponent_: (props: { ref_: (el: HTMLElement) => void; isHidden_: Accessor<boolean> }) => JSX.Element;
|
|
415
423
|
cardIsHovered_: Accessor<boolean>;
|
|
416
424
|
containerComponent_: Accessor<
|
|
417
425
|
false | ((props: { ref?: (el: HTMLElement) => void; class: string; children: JSX.Element }) => JSX.Element)
|
|
@@ -500,7 +508,7 @@ function AnimatedRowSwitch({
|
|
|
500
508
|
ref_={(el: HTMLElement) => (containerElement = el)}
|
|
501
509
|
>
|
|
502
510
|
<DefaultComponent_ ref_={el => (defaultElement = el)} />
|
|
503
|
-
<HoveredComponent_ ref_={el => (hoveredElement = el)} />
|
|
511
|
+
<HoveredComponent_ ref_={el => (hoveredElement = el)} isHidden_={() => !cardIsHovered_()} />
|
|
504
512
|
</InComponentOrDiv>
|
|
505
513
|
);
|
|
506
514
|
}
|
|
@@ -513,6 +521,7 @@ function ColorSwatches({
|
|
|
513
521
|
wantedContainerHeightRem_,
|
|
514
522
|
defaultVariantIndex_,
|
|
515
523
|
ref_,
|
|
524
|
+
isHidden_,
|
|
516
525
|
}: {
|
|
517
526
|
colorMap_: Accessor<Map<string, { hexColor_: string; pageUrl_: string; variantIndex_: number }>>;
|
|
518
527
|
setShowVariantIndex_: Setter<number | undefined>;
|
|
@@ -521,6 +530,7 @@ function ColorSwatches({
|
|
|
521
530
|
wantedContainerHeightRem_: Accessor<number | undefined>;
|
|
522
531
|
defaultVariantIndex_: Accessor<number | undefined>;
|
|
523
532
|
ref_?: (el: HTMLDivElement) => void;
|
|
533
|
+
isHidden_?: Accessor<boolean>;
|
|
524
534
|
}) {
|
|
525
535
|
let unHoverDebouncedTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
526
536
|
const entriesToShow = () => [...colorMap_().entries()].slice(0, 12);
|
|
@@ -569,6 +579,8 @@ function ColorSwatches({
|
|
|
569
579
|
500
|
|
570
580
|
);
|
|
571
581
|
})}
|
|
582
|
+
aria-hidden={isHidden_?.()}
|
|
583
|
+
tabIndex={isHidden_?.() ? -1 : undefined}
|
|
572
584
|
href={pageUrl_}
|
|
573
585
|
class="d-swatch"
|
|
574
586
|
ref={element =>
|