Browse Source

revert "fix: deprecate nested a link warning"

This reverts commit 498042319507e63d17cf9de3c4dfd4c81a8dc311.
Weihua Lu 4 years ago
parent
commit
560203ce4f
2 changed files with 5 additions and 5 deletions
  1. 4 4
      resources/css/common.css
  2. 1 1
      src/main/frontend/ui.cljs

+ 4 - 4
resources/css/common.css

@@ -596,23 +596,23 @@ button.menu {
   color: var(--ls-link-text-color, #24292e);
 }
 
-div.menu-link:hover,
+a.menu-link:hover,
 button.pull:hover,
 button.menu:focus {
   background-color: var(--ls-menu-hover-color, #f4f5f7);
 }
 
-div.menu-link {
+a.menu-link {
   background-color: var(--ls-primary-background-color, #fff);
   color: var(--ls-primary-text-color);
 }
 
-div.menu-link:first-of-type {
+a.menu-link:first-of-type {
   border-top-left-radius: var(--ls-border-radius-low);
   border-top-right-radius: var(--ls-border-radius-low);
 }
 
-div.menu-link:last-of-type {
+a.menu-link:last-of-type {
   border-bottom-left-radius: var(--ls-border-radius-low);
   border-bottom-right-radius: var(--ls-border-radius-low);
 }

+ 1 - 1
src/main/frontend/ui.cljs

@@ -76,7 +76,7 @@
 
 (rum/defc menu-link
   [options child]
-  [:div.block.px-4.py-2.text-sm.text-gray-700.transition.ease-in-out.duration-150.cursor.menu-link
+  [:a.block.px-4.py-2.text-sm.text-gray-700.transition.ease-in-out.duration-150.cursor.menu-link
    options
    child])