diff --git a/locale/en.js b/locale/en.js index 3b98f7ae..22a3e376 100644 --- a/locale/en.js +++ b/locale/en.js @@ -1194,6 +1194,7 @@ export default { context_enable_option: 'Enable', add_comment: 'Add comment', delete_comment: 'Delete comment', + comment_text_label: 'Comment text', view_in_canvas: 'View in canvas', exit_canvas_view: 'Stop orbiting object', detach_block_option: 'Detach', diff --git a/main/blocklyinit.js b/main/blocklyinit.js index 768a5cc8..8ec100e2 100644 --- a/main/blocklyinit.js +++ b/main/blocklyinit.js @@ -753,16 +753,62 @@ export function initializeWorkspace() { } workspaceSearch.init(); workspaceSearch.setSearchPlaceholder(translate('workspace_search_placeholder')); + // @blockly/plugin-workspace-search's createTextInput() only sets a + // placeholder, never an accessible name. + workspaceSearch.inputElement?.setAttribute('aria-label', translate('workspace_search_placeholder')); window.flockWorkspaceSearch = workspaceSearch; + // Comment textareas (block-comment bubbles and standalone workspace + // comments both render a