@usequeek/theme-kit 0.5.7 → 0.5.8
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/apps/apps.css
CHANGED
|
@@ -587,27 +587,50 @@ form button.core-subscribe__button:disabled { opacity: 0.6; cursor: default; }
|
|
|
587
587
|
.core-consent-banner .core-consent-banner__decline:hover,
|
|
588
588
|
.core-consent-banner .core-consent-banner__accept:hover { opacity: 0.85; }
|
|
589
589
|
|
|
590
|
-
/* The footer attribution slot: the cookie preferences link, then "Powered by Queek". No positioning, so a footer row keeps its layout. */
|
|
590
|
+
/* The footer attribution slot: the cookie preferences link, a middle dot, then "Powered by Queek". No positioning, so a footer row keeps its layout. */
|
|
591
591
|
.core-powered-by-group {
|
|
592
592
|
display: inline-flex;
|
|
593
593
|
align-items: baseline;
|
|
594
594
|
flex-wrap: wrap;
|
|
595
|
-
gap: 0.
|
|
595
|
+
gap: 0.6em;
|
|
596
596
|
}
|
|
597
597
|
|
|
598
|
-
/*
|
|
598
|
+
/* Reads as one of the footer's small links (Dawn's policy links): same size and colour as the row around it, no underline at rest, underline on hover.
|
|
599
|
+
A theme whose `.core-powered-by` has its own size or colour must give `.core-consent-link` the same values in one selector list. */
|
|
599
600
|
.core-consent-link {
|
|
601
|
+
appearance: none;
|
|
600
602
|
background: none;
|
|
601
603
|
border: 0;
|
|
602
604
|
padding: 0;
|
|
603
605
|
margin: 0;
|
|
604
606
|
font: inherit;
|
|
605
607
|
color: inherit;
|
|
608
|
+
letter-spacing: inherit;
|
|
609
|
+
text-transform: inherit;
|
|
610
|
+
line-height: inherit;
|
|
606
611
|
text-align: start;
|
|
607
|
-
text-decoration:
|
|
612
|
+
text-decoration: none;
|
|
608
613
|
cursor: pointer;
|
|
609
614
|
}
|
|
610
615
|
|
|
616
|
+
.core-consent-link:hover {
|
|
617
|
+
text-decoration: underline;
|
|
618
|
+
text-underline-offset: 0.2em;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.core-consent-link:focus-visible {
|
|
622
|
+
outline: 2px solid currentColor;
|
|
623
|
+
outline-offset: 2px;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* Dawn's middle dot between the link and the credit. The empty alt text keeps it silent for screen readers; with the credit hidden the bare link has no group, so no dot. */
|
|
627
|
+
.core-powered-by-group > .core-consent-link::after {
|
|
628
|
+
content: "\00B7" / "";
|
|
629
|
+
display: inline-block;
|
|
630
|
+
margin-inline-start: 0.6em;
|
|
631
|
+
text-decoration: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
611
634
|
@media (max-width: 600px) {
|
|
612
635
|
.core-consent-banner {
|
|
613
636
|
flex-direction: column;
|
|
@@ -18,7 +18,9 @@ function ConsentPreferencesButton({ onReset }: { onReset: () => void }): JSX.Ele
|
|
|
18
18
|
/**
|
|
19
19
|
* The shopper's way back into their cookie choice, rendered by
|
|
20
20
|
* `PoweredByQueek` in every theme footer (withdrawing consent must be as easy
|
|
21
|
-
* as giving it). A plain inline button, never a floating one
|
|
21
|
+
* as giving it). A plain inline button, never a floating one, that reads as one
|
|
22
|
+
* of the footer's small links: a theme that sizes or colours `.core-powered-by`
|
|
23
|
+
* must give `.core-consent-link` the same values.
|
|
22
24
|
*
|
|
23
25
|
* Shown only when the store uses analytics or an ad pixel, the shopper has
|
|
24
26
|
* answered every question it asks, and the browser is not sending Global
|
|
@@ -42,9 +42,11 @@ export interface PoweredByQueekProps {
|
|
|
42
42
|
* keeps its child count, and the preferences link sits directly before the
|
|
43
43
|
* attribution. The link renders only when the store uses analytics or an ad
|
|
44
44
|
* pixel and the shopper has chosen; otherwise the group holds just the
|
|
45
|
-
* attribution. A footer needs no extra markup
|
|
46
|
-
*
|
|
47
|
-
*
|
|
45
|
+
* attribution. A footer needs no extra markup. The link reads as one of the
|
|
46
|
+
* footer's small links (inherited size and colour, no underline at rest, a
|
|
47
|
+
* middle dot before the credit), so a theme that sizes or colours
|
|
48
|
+
* `.core-powered-by` must give `.core-consent-link` the same values in one
|
|
49
|
+
* selector list.
|
|
48
50
|
*/
|
|
49
51
|
export function PoweredByQueek({ className, hidden = false }: PoweredByQueekProps): JSX.Element | null {
|
|
50
52
|
const store = useContext(StorefrontContext);
|
package/package.json
CHANGED