Skip to main content

Wishlist Count

A link to the wishlist page with how many items are saved, for the header. Like the cart's count, the number never travels in the HTML, so it is safe behind a page cache, and it takes the same size, line and colour as the cart and search icons next to it.

The header icons: the cart, the search and the wishlist count with 3

Its options​

The Wishlist Count properties panel

Props

PropTypeDefaultWhat it does
Accessible nametextWishlistRead by screen readers; once the count is known it says «Wishlist: 3 items».
Iconimagethe built-in iconAny SVG, from the media library or pasted as a data: URI. Its colours are replaced by the icon colour, so it follows the palette.
Linktext{options.fefav.url}The wishlist page chosen in Fancy Etch → Wishlist. Without one there is nowhere to go.
Hide badge when emptyon / offonA zero in a header is noise. The count stays in the link's accessible name either way.
Badge positionchoice: after, before, overafterOn the icon is what a compact header wants: the link is as wide as the heart.
Colors → IcontextcurrentColor
Colors → Badge backgroundtextvar(--fe-woo-accent, #1f2937)
Colors → Badge texttextvar(--fe-woo-accent-color, #ffffff)
Size → Icon sizetextvar(--fe-woo-icon-size, 1.5rem)

Variables of its own

VariableDefaultWhat it controls
--fe-fav-sizevar(--fe-woo-control-size, 2.75rem)How big the button is — the target a finger has to hit. Reads --fe-woo-control-size.
--fe-fav-icon-sizevar(--fe-woo-icon-size, 1.5rem)The heart. In the Count it reads --fe-woo-icon-size, shared with the cart and search icons.
--fe-fav-strokevar(--fe-woo-icon-stroke, 2)How thick the heart's line is. Reads --fe-woo-icon-stroke, shared with the cart and search icons.
--fe-fav-hovercolor-mix(in srgb, var(--fe-woo-accent, #111827) 12%, transparent)The tint behind it under the pointer — the same as the cart and search icons.
--fe-fav-control-radiusvar(--fe-woo-control-radius, 0.63rem)The corners of that tint.
--fe-fav-colorvar(--fe-woo-color, #111827)The heart, and its label, while nothing is saved.
--fe-fav-badge-bgvar(--fe-woo-accent, #1f2937)The little circle carrying the number.
--fe-fav-badge-colorvar(--fe-woo-accent-color, #ffffff)The number itself.
--fe-fav-badge-size1.25remHow big that circle is.
--fe-fav-gap0.5remThe space between the heart and its label, or its badge.
--fe-fav-focus-ringvar(--fe-woo-focus-ring, #2563eb)The ring the keyboard focus draws.