Browse Source

fix: fixed some typos in the title attributes

Marcelo Vilas Boas Correa Filho 3 years ago
parent
commit
35ff769d57

+ 3 - 0
js/accessibleUI/modules/operations/operations.js

@@ -39,6 +39,9 @@ export function createOperation () {
     });
 
     addOperatorKind(operation.hash);
+
+    // Changing focus to the variable type after creation for screen readers
+    document.getElementById(`operation${operation.hash}AssignVariableSelect`).focus();
 }
 
 // Add operator kind to the operation

+ 4 - 4
js/accessibleUI/modules/variables/variables-schemes.js

@@ -89,7 +89,7 @@ export function htmlVariableScheme () {
                            <h5>${variables.length}</h5>
                         </div> -->
                         <div class="col-2">
-                            <select name="tipo" class="form-control" title="tipo da variável" id="variable<variableId>Type" variable-id="<variableId>">
+                            <select name="tipo" class="form-control" title="Tipo da variável" id="variable<variableId>Type" variable-id="<variableId>">
                                 ${variableTypesHtml}
                             </select>
                         </div>
@@ -97,13 +97,13 @@ export function htmlVariableScheme () {
                             <input type="text" class="form-control" title="nome da variável" id="variable<variableId>Name" value="<variableName>" variable-id="<variableId>">
                         </div>
                         <div class="col-1 text-center my-auto" style="margin-bottom: 0px !important">
-                            <label for="variable<variableId>Value" tabindex="0" tile="recebe">recebe</label>
+                            <label for="variable<variableId>Value" tabindex="0" title="Recebe">recebe</label>
                         </div>
                         <div class="col-2">
-                            <input type="${variableTypes[0].htmlType}" class="form-control" id ="variable<variableId>Value" title="valor da variável" value="0" variable-id="<variableId>">
+                            <input type="${variableTypes[0].htmlType}" class="form-control" id ="variable<variableId>Value" title="Valor da variável" value="0" variable-id="<variableId>">
                         </div>
                         <div class="col my-auto" style="text-align: end;">
-                            <a id="variable<variableId>Delete" href="javascript:void(0)" class="text-danger" variable-id="<variableId>">X</a>
+                            <a id="variable<variableId>Delete" href="javascript:void(0)" class="text-danger" variable-id="<variableId>" title="Excluir">X</a>
                         </div>
                     </div>
                 </form>