fix(client): make new editor more accessible (#44425)
This commit is contained in:
@ -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`;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user