Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

feat(docs-ui): add doc float toolbar dark mode (#5170)

Wenzhao Hu3217d6aa9503
diff --git a/packages/design/src/components/menu/Menu.tsx b/packages/design/src/components/menu/Menu.tsx
index c46976f725..fe64183299 100644
--- a/packages/design/src/components/menu/Menu.tsx
+++ b/packages/design/src/components/menu/Menu.tsx
@@ -86,7 +86,12 @@ export function TinyMenuGroup({ items }: ITinyMenuGroupProps) {
}, item.className)}
onClick={() => item.onClick()}
>
- <item.Icon className="univer-size-4 univer-text-gray-900" />
+ <item.Icon
+ className={`
+ univer-size-4 univer-text-gray-900
+ dark:univer-text-gray-200
+ `}
+ />
</div>
);
return item.tooltip
diff --git a/packages/docs-ui/src/components/float-toolbar/FloatToolbar.tsx b/packages/docs-ui/src/components/float-toolbar/FloatToolbar.tsx
index 52207ea962..6810e36c10 100644
--- a/packages/docs-ui/src/components/float-toolbar/FloatToolbar.tsx
+++ b/packages/docs-ui/src/components/float-toolbar/FloatToolbar.tsx
@@ -80,7 +80,7 @@ export function FloatToolbar(props: IFloatToolbarProps) {
<div
className={clsx(`
univer-box-border univer-flex univer-rounded univer-bg-white univer-py-1.5 univer-shadow-sm
- dark:univer-bg-gray-900
+ dark:univer-border-gray-700 dark:univer-bg-gray-900
`, borderClassName)}
>
{menus.map((groupItem) => groupItem.item && (
diff --git a/packages/ui/src/views/components/popup/RectPopup.tsx b/packages/ui/src/views/components/popup/RectPopup.tsx
index cfd2f5139f..6718277f8e 100644
--- a/packages/ui/src/views/components/popup/RectPopup.tsx
+++ b/packages/ui/src/views/components/popup/RectPopup.tsx
@@ -314,12 +314,14 @@ function RectPopup(props: IRectPopupProps) {
<>
{mask && (
<div
+ data-u-comp="rect-popup-mask"
className="univer-fixed univer-bottom-0 univer-left-0 univer-right-0 univer-top-0 univer-z-[100]"
style={{ zIndex: maskZIndex }}
onClick={onMaskClick}
/>
)}
<section
+ data-u-comp="rect-popup"
ref={nodeRef}
className={`
univer-pointer-events-auto univer-fixed univer-left-[-9999px] univer-top-[-9999px] univer-z-[1020]