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.

fix(sheets-drawing-ui): reuse transparency aria label (#7814)

wpxp1234567efa462dbbad
diff --git a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetImageTransparencySlider.tsx b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetImageTransparencySlider.tsx
index d95f2a0bc4..4f9c4ada13 100644
--- a/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetImageTransparencySlider.tsx
+++ b/packages/sheets-drawing-ui/src/views/sheet-image-panel/SheetImageTransparencySlider.tsx
@@ -284,7 +284,6 @@ function SheetImageTransparencyInput(props: ISheetImageTransparencyInputProps) {
onChangeComplete,
} = props;
const iconManager = useDependency(IconManager);
- const localeService = useDependency(LocaleService);
const isEditingRef = useRef(false);
const [listVisible, setListVisible] = useState(false);
const [inputValue, setInputValue] = useState(() => `${value}%`);
@@ -398,7 +397,7 @@ function SheetImageTransparencyInput(props: ISheetImageTransparencyInputProps) {
className="univer-h-6 univer-w-4 univer-rounded-none univer-p-0"
size="small"
variant="text"
- aria-label={localeService.t('ui.accessibility.menu')}
+ aria-label={ariaLabel}
disabled={disabled}
>
<MoreDownIcon