mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-12 15:52:39 +02:00
fix(v2): various improvements for accessibility (#2442)
This commit is contained in:
parent
15a21ace93
commit
3052ef14e5
5 changed files with 13 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue