From 51b02ae6d4879a4dbf3b2b503f3d439d2168127a Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Wed, 6 Dec 2023 11:18:23 +0530 Subject: [PATCH] Fix few accessibility related issues. #6991 --- web/pgadmin/static/js/components/CodeMirror.jsx | 10 +++++++++- web/pgadmin/static/js/components/ContextMenu.jsx | 5 +++++ web/pgadmin/static/js/components/FormComponents.jsx | 7 ++++--- web/pgadmin/static/js/components/PgTable.jsx | 9 +++++++-- web/pgadmin/templates/base.html | 1 + .../static/js/components/InputComponent.jsx | 3 +++ .../static/js/components/QueryToolComponent.jsx | 2 +- 7 files changed, 30 insertions(+), 7 deletions(-) diff --git a/web/pgadmin/static/js/components/CodeMirror.jsx b/web/pgadmin/static/js/components/CodeMirror.jsx index 9632c3ee458..cb79c64c800 100644 --- a/web/pgadmin/static/js/components/CodeMirror.jsx +++ b/web/pgadmin/static/js/components/CodeMirror.jsx @@ -259,6 +259,10 @@ export function FindDialog({editor, show, replace, onClose, selFindVal}) { inputRef={(ele)=>{findInputRef.current = ele;}} onChange={(value)=>setFindVal(value)} onKeyPress={onFindEnter} + placeholder={gettext('Find text')} + controlProps={{ + title: gettext('Find text') + }} endAdornment={ } size="xs" noBorder @@ -273,6 +277,10 @@ export function FindDialog({editor, show, replace, onClose, selFindVal}) { className={classes.marginTop} onChange={(value)=>setReplaceVal(value)} onKeyPress={onReplaceEnter} + placeholder={gettext('Replace value')} + controlProps={{ + title: gettext('Replace value') + }} />} @@ -554,7 +562,7 @@ export default function CodeMirror({currEditor, name, value, options, events, re > 0 ? editor.current.getSelection() : ''}/> -