diff --git a/css/components/header.css b/css/components/header.css index 38d8717..09694ff 100644 --- a/css/components/header.css +++ b/css/components/header.css @@ -29,6 +29,15 @@ header > a.basket-badge { background-color: unset; } +header > a.basket-badge > svg { + vertical-align: top; +} + +header > a.basket-badge > span, +header > a.basket-badge > strong { + vertical-align: middle; +} + header > nav > ul { list-style: none; display: flex; diff --git a/js/basket.js b/js/basket.js index efdf214..78a6d59 100644 --- a/js/basket.js +++ b/js/basket.js @@ -77,7 +77,7 @@ async function updateBadge() { anchor.innerHTML = (numProducts > 0) ? "\n" + " \n" + - " | " + numProducts + "" : "\n" + + " | " + numProducts + "" : "\n" + " \n" + "";