瀏覽代碼

fix(test): e2e accessibility test fail

Andelf 2 年之前
父節點
當前提交
91eced93d0
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/frontend/ui.cljs

+ 3 - 2
src/main/frontend/ui.cljs

@@ -250,10 +250,11 @@
              content]]
            [:div.ml-4.flex-shrink-0.flex
             [:button.inline-flex.text-gray-400.focus:outline-none.focus:text-gray-500.transition.ease-in-out.duration-150.notification-close-button
-             {:on-click (fn []
+             {:aria-label "Close"
+              :on-click (fn []
                           (notification/clear! uid))}
 
-            (icon "x" {:fill "currentColor"})]]]]]]])))
+             (icon "x" {:fill "currentColor"})]]]]]]])))
 
 (declare button)