fix: deprecate nested a link warning

pull/1735/head
Weihua Lu 2021-04-30 15:18:19 +08:00
parent 4f61d12ec9
commit 4980423195
2 changed files with 5 additions and 5 deletions

View File

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

View File

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