@keenmate/pure-css 1.0.0-rc06 → 1.0.0-rc08

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/src/js/fit.js CHANGED
@@ -613,8 +613,10 @@
613
613
  moreLink.className = 'pc-navmenu__link';
614
614
  moreLink.setAttribute('aria-haspopup', 'true');
615
615
  moreLink.setAttribute('aria-expanded', 'false');
616
+ // Empty span — the glyph is painted by CSS (--base-icon-chevron mask). No
617
+ // text char (the old "›" rendered inconsistently and would double up on the mask).
616
618
  moreLink.innerHTML = navEscapeHtml(moreLabel) +
617
- ' <span class="pc-navmenu__more-chevron" aria-hidden="true">›</span>';
619
+ ' <span class="pc-navmenu__more-chevron" aria-hidden="true"></span>';
618
620
  moreLi.appendChild(moreLink);
619
621
  ul.appendChild(moreLi);
620
622
  moreLi.style.display = 'none';
@@ -736,8 +738,9 @@
736
738
  btn.type = 'button';
737
739
  btn.className = 'pc-sidebar__toggle';
738
740
  btn.setAttribute('aria-expanded', active ? 'true' : 'false');
741
+ // Empty chevron span — glyph painted by CSS (--base-icon-chevron mask).
739
742
  btn.innerHTML = iconHtml(icon) + labelHtml(text) +
740
- '<span class="pc-sidebar__chevron" aria-hidden="true">›</span>';
743
+ '<span class="pc-sidebar__chevron" aria-hidden="true"></span>';
741
744
  li.appendChild(btn);
742
745
  var submenu = document.createElement('ul');
743
746
  submenu.className = 'pc-sidebar__submenu' + (active ? ' pc-sidebar__submenu--open' : '');