mirror of https://github.com/logseq/logseq
fix(ux): compatiable herf for the classical ui button component
parent
9c2cea030b
commit
f5bf5a4bfb
|
@ -1046,6 +1046,11 @@
|
|||
button-props)
|
||||
|
||||
icon (when icon (shui-ui/tabler-icon icon icon-props))
|
||||
href? (not (string/blank? href))
|
||||
text (cond
|
||||
href? [:a {:href href :target "_blank"
|
||||
:style {:color "inherit"}} text]
|
||||
:else text)
|
||||
children [icon text]]
|
||||
|
||||
(shui-ui/button props children)))
|
||||
|
|
Loading…
Reference in New Issue