fix(client): make new editor more accessible (#44425)

pull/44427/head
Tom 2021-12-08 18:28:20 -06:00 committed by GitHub
parent 09352ad3c2
commit 6872262d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -491,7 +491,6 @@ const Editor = (props: EditorProps): JSX.Element => {
// The z-index needs increasing as ViewZones default to below the lines. // The z-index needs increasing as ViewZones default to below the lines.
domNode.style.zIndex = '10'; domNode.style.zIndex = '10';
domNode.setAttribute('aria-hidden', 'true');
domNode.style.left = `${editor.getLayoutInfo().contentLeft}px`; domNode.style.left = `${editor.getLayoutInfo().contentLeft}px`;
domNode.style.width = `${editor.getLayoutInfo().contentWidth}px`; domNode.style.width = `${editor.getLayoutInfo().contentWidth}px`;
@ -527,8 +526,6 @@ const Editor = (props: EditorProps): JSX.Element => {
// The z-index needs increasing as ViewZones default to below the lines. // The z-index needs increasing as ViewZones default to below the lines.
outputNode.style.zIndex = '10'; outputNode.style.zIndex = '10';
outputNode.setAttribute('aria-hidden', 'true');
outputNode.style.left = `${editor.getLayoutInfo().contentLeft}px`; outputNode.style.left = `${editor.getLayoutInfo().contentLeft}px`;
outputNode.style.width = `${editor.getLayoutInfo().contentWidth}px`; outputNode.style.width = `${editor.getLayoutInfo().contentWidth}px`;