Skip to content

Commit

Permalink
Make aria label use locale translated string
Browse files Browse the repository at this point in the history
Signed-off-by: sugarylump <alexcarvalhoflores@gmail.com>
  • Loading branch information
SugaryLump committed Aug 12, 2024
1 parent 1372472 commit cc60303
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2484,4 +2484,7 @@ SafeHtml representationInformationAssociatedWithDescription(String field, String

/* Audit logs */
String relatedAuditLogs();

/* Accessibility labels */
String ariaLabelClose();
}
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public void onChange(ChangeEvent event) {
inputPanel.addStyleName("search-field-input-panel");
inputPanel.addStyleName("full_width");
remove.addStyleName("search-field-remove");
remove.getElement().setAttribute("aria-label", "close");
remove.getElement().setAttribute("aria-label", messages.ariaLabelClose());
fieldLabel.addStyleName("search-field-label");
fieldBox.addStyleName("form-listbox");
searchAdvancedFields.addStyleName("form-listbox");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1721,5 +1721,6 @@ changeRepresentationStatusToPreservationTitle: Change the representation status
changeRepresentationStatusToPreservationDescription:
conversionProfileTitle: Conversion Profile
conversionProfileDescription: Conversion profile options

# Accessibility labels
ariaLabelClose: close

0 comments on commit cc60303

Please sign in to comment.