add inaccessibility message for record video tinymce button
test_plan: * using a screen reader, navigate to the video record button in the tinymce editor * should hear a message that the feature is inaccessible closes #CNVS-1529 Change-Id: I555d2abaf09b25da2198d8198ff5c6db6578f98f Reviewed-on: https://gerrit.instructure.com/17958 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Bracken Mosbacker <bracken@instructure.com> QA-Review: Adam Phillipps <adam@instructure.com>
This commit is contained in:
parent
d80c806fe9
commit
8d1b6c0b62
|
@ -24,5 +24,12 @@ define [
|
|||
@$el.find("##{@id_prepend}_forecolor_voice").text(I18n.t('accessibles.forecolor',"Text Color, press down to select"))
|
||||
@$el.find("##{@id_prepend}_backcolor_voice").text(I18n.t('accessibles.background_color',"Background Color, press down to select"))
|
||||
|
||||
@$el.find("##{@id_prepend}_instructure_record").attr('aria-disabled', 'true')
|
||||
@$el.find("##{@id_prepend}_instructure_record").removeAttr('role')
|
||||
@$el.find("##{@id_prepend}_instructure_record_voice").append('<br/>').append(I18n.t('accessibles.record', 'This feature is inaccessible for screen readers.'))
|
||||
@$el.find("##{@id_prepend}_instructure_record img").attr('alt',
|
||||
@$el.find("##{@id_prepend}_instructure_record img").attr('alt') + ", " + I18n.t('accessibles.record', 'This feature is inaccessible for screen readers.'));
|
||||
debugger
|
||||
|
||||
_addTitles: ->
|
||||
@$iframe.attr 'title', I18n.t('titles.rte_help', 'Rich Text Area. Press ALT F10 for toolbar. Press ALT 0 for help.')
|
||||
|
|
Loading…
Reference in New Issue