@playkit-js/transcript 3.1.0-canary.2-d22690c → 3.1.0-canary.3-ca9cf88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/dist/playkit-transcript.js +1 -1
- package/dist/playkit-transcript.js.map +1 -1
- package/package.json +1 -1
- package/src/components/caption/caption.tsx +2 -2
- package/src/components/close-button/index.tsx +1 -1
- package/src/components/search/search.tsx +4 -4
- package/src/components/transcript/transcript.tsx +2 -2
package/package.json
CHANGED
|
@@ -116,8 +116,8 @@ export class Caption extends Component<ExtendedCaptionProps> {
|
|
|
116
116
|
<A11yWrapper onClick={this._handleKeyDown}>
|
|
117
117
|
<div
|
|
118
118
|
className={styles.caption}
|
|
119
|
-
tabIndex={
|
|
120
|
-
|
|
119
|
+
tabIndex={0}
|
|
120
|
+
aria-label={caption.text}
|
|
121
121
|
ref={node => {
|
|
122
122
|
this._hotspotRef = node;
|
|
123
123
|
}}
|
|
@@ -16,7 +16,7 @@ interface CloseButtonProps {
|
|
|
16
16
|
|
|
17
17
|
export const CloseButton = withText(translates)((props: CloseButtonProps) => (
|
|
18
18
|
<A11yWrapper onClick={props.onClick}>
|
|
19
|
-
<button className={styles.closeBtn} tabIndex={
|
|
19
|
+
<button className={styles.closeBtn} tabIndex={0} aria-label={props.closeLabel}>
|
|
20
20
|
<Icon
|
|
21
21
|
id="transcript-plugin-close-button"
|
|
22
22
|
height={icons.BigSize}
|
|
@@ -167,14 +167,14 @@ class SearchComponent extends Component<SearchProps, SearchState> {
|
|
|
167
167
|
onFocus={this._onFocus}
|
|
168
168
|
onBlur={this._onBlur}
|
|
169
169
|
onMouseDown={this._handleMouseDown}
|
|
170
|
-
tabIndex={
|
|
170
|
+
tabIndex={0}
|
|
171
171
|
ref={node => {
|
|
172
172
|
this._inputRef = node;
|
|
173
173
|
}}
|
|
174
174
|
/>
|
|
175
175
|
{searchQuery && (
|
|
176
176
|
<A11yWrapper onClick={this._onClear}>
|
|
177
|
-
<button className={styles.clearIcon} tabIndex={
|
|
177
|
+
<button className={styles.clearIcon} tabIndex={0} aria-label={this.props.clearSearchLabel}>
|
|
178
178
|
<svg
|
|
179
179
|
width="32px"
|
|
180
180
|
height="32px"
|
|
@@ -201,7 +201,7 @@ class SearchComponent extends Component<SearchProps, SearchState> {
|
|
|
201
201
|
{searchQuery && (
|
|
202
202
|
<A11yWrapper onClick={this._goToPrevSearchResult}>
|
|
203
203
|
<button
|
|
204
|
-
tabIndex={
|
|
204
|
+
tabIndex={0}
|
|
205
205
|
className={`${styles.prevNextButton} ${totalSearchResults === 0 ? styles.disabled : ''}`}
|
|
206
206
|
aria-label={this.props.prevMatchLabel}>
|
|
207
207
|
<svg
|
|
@@ -225,7 +225,7 @@ class SearchComponent extends Component<SearchProps, SearchState> {
|
|
|
225
225
|
{searchQuery && (
|
|
226
226
|
<A11yWrapper onClick={this._goToNextSearchResult}>
|
|
227
227
|
<button
|
|
228
|
-
tabIndex={
|
|
228
|
+
tabIndex={0}
|
|
229
229
|
className={`${styles.prevNextButton} ${totalSearchResults === 0 ? styles.disabled : ''}`}
|
|
230
230
|
aria-label={this.props.nextMatchLabel}>
|
|
231
231
|
<svg
|
|
@@ -111,7 +111,7 @@ export class TranscriptComponent extends Component<TranscriptProps, TranscriptSt
|
|
|
111
111
|
<div
|
|
112
112
|
role="button"
|
|
113
113
|
className={`${styles.autoscrollButton} ${isAutoScrollEnabled ? '' : styles.autoscrollButtonVisible}`}
|
|
114
|
-
tabIndex={isAutoScrollEnabled ? -1 :
|
|
114
|
+
tabIndex={isAutoScrollEnabled ? -1 : 0}
|
|
115
115
|
aria-label={this.props.autoScrollLabel}
|
|
116
116
|
ref={node => {
|
|
117
117
|
this._autoscrollButtonRef = node;
|
|
@@ -238,7 +238,7 @@ export class TranscriptComponent extends Component<TranscriptProps, TranscriptSt
|
|
|
238
238
|
className={styles.skipTranscriptButton}
|
|
239
239
|
onKeyDown={this._handleKeyDown}
|
|
240
240
|
onClick={this._handleClick}
|
|
241
|
-
tabIndex={
|
|
241
|
+
tabIndex={0}>
|
|
242
242
|
Skip transcript
|
|
243
243
|
</div>
|
|
244
244
|
);
|