mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-27 11:19:21 -04:00
Add ARIA attributes from Design System component
This commit copies the same ARIA attributes that are added to the character count component[1] in the GOV.UK Design System. This means that screen reader users will hear the count message when they stop typing. 1. https://design-system.service.gov.uk/components/character-count/
This commit is contained in:
@@ -14,7 +14,11 @@
|
||||
this.$component = $(component);
|
||||
this.$textbox = $('#' + this.$component.data('target'));
|
||||
|
||||
this.$component
|
||||
.attr('id', id);
|
||||
|
||||
this.$textbox
|
||||
.attr('aria-described-by', this.$textbox.attr('aria-described-by') + ' ' + id)
|
||||
.on('input', this.update)
|
||||
.trigger('input');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user