瀏覽代碼

fix: sharer being aria hidden but having focusable dependents

George Cushen 3 年之前
父節點
當前提交
c9831b5c1e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      wowchemy/layouts/partials/share.html

+ 2 - 2
wowchemy/layouts/partials/share.html

@@ -1,5 +1,5 @@
 {{ if and site.Params.sharing (ne .Params.share false) }}
-<div class="share-box" aria-hidden="true">
+<div class="share-box">
   <ul class="share">
     {{ range where site.Data.page_sharer.buttons "enable" true }}
       {{ $pack := or .icon_pack "fas" }}
@@ -10,7 +10,7 @@
       {{ $link := replace .url "{url}" ($.Permalink | htmlEscape) }}
       {{ $link = replace $link "{title}" ($.Title | htmlEscape) }}
       <li>
-        <a href="{{$link|safeURL}}" target="_blank" rel="noopener" class="share-btn-{{.id}}">
+        <a href="{{$link|safeURL}}" target="_blank" rel="noopener" class="share-btn-{{.id}}" aria-label="{{.icon}}">
           <i class="{{$pack}} {{$pack_prefix}}-{{.icon}}"></i>
         </a>
       </li>