Skip to content

Commit 51de084

Browse files
fix: update alt text for log icon and correct dropdown dependency (#41432)
- Changed the alt text for the log icon from "icon" to "Plugin icon" for better accessibility. - Fixed a dependency issue in the useDropdown hook by replacing handleOnDropdownOpen with handleOnDropdownClose in the dependency array.
1 parent 7e119f9 commit 51de084

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/client/src/ce/components/editorComponents/Debugger/ErrorLogs/getLogIconForEntity.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const getIconForEntity: IconEntityMapper = {
4747
);
4848
}
4949

50-
return <img alt="icon" />;
50+
return <img alt="Plugin icon" />;
5151
},
5252
[DEBUGGER_ENTITY_TYPE.GIT]: () => {
5353
return <Icon name="git-repository" />;

app/client/src/widgets/useDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const useDropdown = ({
9191
selectRef.current?.blur();
9292
}
9393
},
94-
[renderMode, handleOnDropdownOpen, handleOnDropdownOpen],
94+
[renderMode, handleOnDropdownOpen, handleOnDropdownClose],
9595
);
9696

9797
const closeBackDrop = useCallback(() => {

0 commit comments

Comments
 (0)