diff --git a/src/components/transcript/transcript.tsx b/src/components/transcript/transcript.tsx index dac8560..77e58bc 100644 --- a/src/components/transcript/transcript.tsx +++ b/src/components/transcript/transcript.tsx @@ -30,8 +30,7 @@ const translates = { errorDescripton: Failed to load transcript, attachTranscript: Bring Transcript back, detachTranscript: Popout transcript, - toSearchResult: Go to result, - toSearchResultLabel: Click to jump to this point in the video + toSearchResult: Go to result }; export interface TranscriptProps { @@ -57,7 +56,6 @@ export interface TranscriptProps { attachTranscript?: string; detachTranscript?: string; toSearchResult?: string; - toSearchResultLabel?: string; downloadDisabled: boolean; onDownload: () => void; printDisabled: boolean; @@ -275,7 +273,7 @@ export class Transcript extends Component { }; private _renderJumpToSearchButton = () => { - const {toSearchResult, toSearchResultLabel, onJumpToSearchMatch} = this.props; + const {toSearchResult, onJumpToSearchMatch} = this.props; const {search, activeSearchIndex, totalSearchResults} = this.state; if (!search || totalSearchResults === 0 || activeSearchIndex === 0) { return null; @@ -285,7 +283,7 @@ export class Transcript extends Component { type={ButtonType.secondary} className={styles.toSearchButton} onClick={onJumpToSearchMatch} - ariaLabel={toSearchResultLabel} + ariaLabel={toSearchResult} testId="transcript_jumpToSearchMatch"> {toSearchResult}