1
0
Эх сурвалжийг харах

fix(shui): dialog content warning

charlie 6 сар өмнө
parent
commit
7183bbd2b4

+ 2 - 1
deps/shui/src/logseq/shui/util.cljs

@@ -27,7 +27,8 @@
   [data & {:keys [html-props]}]
   (let [convert-to-camel (fn [[key value]]
                            (let [k (name key)]
-                             [(if-not (s/starts-with? k "data-")
+                             [(if-not (or (s/starts-with? k "data-")
+                                        (s/starts-with? k "aria-"))
                                 (kebab-case->camel-case k) k) value]))]
     (w/postwalk (fn [x]
                   (if (map? x)

+ 1 - 0
packages/ui/@/components/ui/dialog.tsx

@@ -36,6 +36,7 @@ const DialogContent = React.forwardRef<
     <DialogOverlay {...overlayProps}>
       <DialogPrimitive.Content
         ref={ref}
+        aria-describedby={undefined}
         className={cn(
           'ui__dialog-content',
           'relative grid w-full max-w-2xl lg:max-w-3xl gap-4 border sm:rounded-lg ' +