Skip to content

Commit

Permalink
Inject labels into Quill interface on Announcements panel.
Browse files Browse the repository at this point in the history
See #3253.
  • Loading branch information
boonebgorges committed Oct 18, 2023
1 parent 8ccf138 commit e9d0094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wp-content/themes/openlab/js/group-announcements.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@
'role': 'textbox',
'aria-multiline': true
} );

$( '.ql-preview' ).html( '<span class="screen-reader-text">' + OLRichTextComments.previewLabel + '</span>' );
$( '.ql-tooltip input[data-video="Embed URL"]' ).attr( 'aria-label', 'Embed URL' )
})

/**
Expand Down
1 change: 1 addition & 0 deletions wp-content/themes/openlab/lib/group-announcements.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function() {
'embedUrl' => __( 'Embed URL', 'openlab-rich-text-comments' ),
'enterAltText' => __( 'Alt text description', 'openlab-rich-text-comments' ),
'enterMediaUrl' => __( 'Enter media URL', 'openlab-rich-text-comments' ),
'previewLabel' => __( 'Preview', 'openlab-rich-text-comments' ),
'toggleBoldText' => __( 'Toggle bold text', 'openlab-rich-text-comments' ),
'toggleBulletedList' => __( 'Toggle bulleted list', 'openlab-rich-text-comments' ),
'toggleItalicText' => __( 'Toggle italic text', 'openlab-rich-text-comments' ),
Expand Down

0 comments on commit e9d0094

Please sign in to comment.