fix(v2): synchronize code block components changes (#2509)

This commit is contained in:
Alexey Pyltsyn 2020-04-02 18:05:48 +03:00 committed by GitHub
parent 9cff1bb9e4
commit 44f9c76851
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 118 additions and 9 deletions

View file

@ -229,7 +229,7 @@ export default ({children, className: languageClassName, metastring}) => {
onClick={handleCopyCode}>
{showCopied ? 'Copied' : 'Copy'}
</button>
<pre
<div
tabIndex="0"
className={classnames(className, styles.codeBlock, {
[styles.codeBlockWithTitle]: codeBlockTitle,
@ -255,7 +255,7 @@ export default ({children, className: languageClassName, metastring}) => {
);
})}
</div>
</pre>
</div>
</div>
</>
)}