Skip to content

Commit

Permalink
move to next line disables
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Mar 29, 2020
1 parent e63c166 commit ed1d5a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

/* eslint-disable jsx-a11y/no-noninteractive-tabindex */

import React, {useEffect, useState, useRef} from 'react';
import classnames from 'classnames';
import Highlight, {defaultProps} from 'prism-react-renderer';
Expand Down Expand Up @@ -119,6 +117,7 @@ export default ({children, className: languageClassName, metastring}) => {
{showCopied ? 'Copied' : 'Copy'}
</button>
<pre
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}
tabIndex="0"
className={classnames(className, styles.codeBlock, {
[styles.codeBlockWithTitle]: codeBlockTitle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

/* eslint-disable jsx-a11y/no-noninteractive-tabindex */

import React, {useEffect, useState, useRef} from 'react';
import classnames from 'classnames';
import Highlight, {defaultProps} from 'prism-react-renderer';
Expand Down Expand Up @@ -138,6 +136,7 @@ export default ({
{showCopied ? 'Copied' : 'Copy'}
</button>
<pre
{/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */}
tabIndex="0"
className={classnames(className, styles.codeBlock, {
[styles.codeBlockWithTitle]: codeBlockTitle,
Expand Down

0 comments on commit ed1d5a6

Please sign in to comment.