Skip to content

Commit

Permalink
fix: Localize invisible aria label
Browse files Browse the repository at this point in the history
  • Loading branch information
TatuJLund committed Nov 21, 2024
1 parent 4623495 commit e102d56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private void configureNameField() {
nameField = new TextField();
var nameFieldExt = AttributeExtension.of(nameField);
nameFieldExt.setAttribute("autocomplete", "off");
nameFieldExt.setAttribute("aria-label", "category name");
nameFieldExt.setAttribute("aria-label", getTranslation(I18n.Category.CATEGORY));
nameFieldExt.removeAttribute("aria-labelledby");
nameField.setId(String.format("name-%s", category.getId()));
nameField.setValueChangeMode(ValueChangeMode.LAZY);
Expand Down

0 comments on commit e102d56

Please sign in to comment.