fix(v2): various improvements for accessibility (#2442)

This commit is contained in:
Alexey Pyltsyn 2020-03-23 06:46:57 +03:00 committed by GitHub
parent 15a21ace93
commit 3052ef14e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 6 deletions

View file

@ -100,7 +100,7 @@ export default ({children, className: languageClassName, metastring}) => {
{showCopied ? 'Copied' : 'Copy'}
</button>
<code ref={target} className={styles.codeBlockLines} style={style}>
<div ref={target} className={styles.codeBlockLines} style={style}>
{tokens.map((line, i) => {
if (line.length === 1 && line[0].content === '') {
line[0].content = '\n'; // eslint-disable-line no-param-reassign
@ -120,7 +120,7 @@ export default ({children, className: languageClassName, metastring}) => {
</div>
);
})}
</code>
</div>
</pre>
)}
</Highlight>