snip-icons.liquid
Copy the code below under the first </svg> tag of the file.
{% elsif icon == 'heart-fillable' %}
<svg class="icon--drop-heart {{ classes }}"
xmlns="http://www.w3.org/2000/svg"
width="{{ size }}"
viewBox="0 0 20 20"
xml:space="preserve">
<path class="heart-shape" d="M10,20c-0.1,0-0.2,0-0.3-0.1c-0.1,0-0.1-0.1-0.2-0.2L1,8.2C0.3,7.2,0,6.1,0,5c0-0.1,0-0.1,0-0.2 C0.3,2.2,2.4,0.2,5,0c1.5-0.1,2.9,0.4,3.9,1.4C9.4,1.9,9.7,2.4,10,2.9c0.3-0.6,0.6-1.1,1.1-1.5c1.1-1,2.5-1.5,3.9-1.4 c2.6,0.2,4.7,2.2,4.9,4.7c0,0.1,0,0.1,0,0.2c0.1,1.1-0.3,2.3-1,3.2l-8.6,11.6C10.3,19.9,10.2,20,10,20z"
fill="{{ fill }}"
stroke="{{ stroke_color }}"
stroke-width="{{ stroke_width | default: 1 }}"
stroke-linejoin="round"
stroke-linecap="round"
vector-effect="non-scaling-stroke"
/>
</svg>
header-cart-links.liquid
Copy the code below under the{% if shop.customer_accounts_enabled %}...{% endif %} tag:
<li class="header__cart-links--cart cart-link relative {{ classes }}">
<ooo-wl-access-button class="ooo-wishlist-header-button">
<a href="{% if routes.root_url != '/' %}{{ routes.root_url }}{% endif %}/pages/[WISHLIST PAGE HANDLE]" class="relative px1 py4 mb0" style="display:block">
<span class="account-button header-actions__action" aria-label="{{ 'accessibility.open_wishlist' | t }}">
{% render 'snip-icons',
wrapper: '.header__cart-links--cart',
type: 'theme',
icon: 'heart-fillable',
size: '20px',
classes: 'header__cart-links--cart-icon mr0',
fill: 'transparent',
stroke_color: fill_color %}
</span>
<ooo-wl-wishlist-count hidden hide-count="true"></ooo-wl-wishlist-count>
</a>
</ooo-wl-access-button>
<style>
ooo-wl-access-button svg path {transition: .3s ease;}
ooo-wl-access-button[has-wishlist-items] svg path {fill: var(--header-text);}
@media screen and (max-width: 380px) { .ooo-wishlist-header-button { display: none; } }
</style>
</li>
en.default.json
You will need to add the text description of the icon. To do that, add this line to the accessibility object:
"open_wishlist": "Open wishlist"
Note: do not forget to add this translation key to your other locale files.