fix: make sure a11y help widget is not obscured (#44822)
This commit is contained in:
committed by
GitHub
parent
d050da3203
commit
d091bd3b8f
@ -86,3 +86,8 @@
|
|||||||
background-color: var(--primary-background);
|
background-color: var(--primary-background);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Unless we increase the z-index the help widget gets obscured by the jaws */
|
||||||
|
.accessibilityHelpWidget {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
@ -489,13 +489,8 @@ const Editor = (props: EditorProps): JSX.Element => {
|
|||||||
descContainer.appendChild(desc);
|
descContainer.appendChild(desc);
|
||||||
desc.innerHTML = description;
|
desc.innerHTML = description;
|
||||||
highlightAllUnder(desc);
|
highlightAllUnder(desc);
|
||||||
// TODO: the solution is probably just to use an overlay that's forced to
|
|
||||||
// follow the decorations.
|
|
||||||
// TODO: this is enough for Firefox, but Chrome needs more before the
|
|
||||||
// user can select text by clicking and dragging.
|
|
||||||
domNode.style.userSelect = 'text';
|
domNode.style.userSelect = 'text';
|
||||||
// The z-index needs increasing as ViewZones default to below the lines.
|
|
||||||
domNode.style.zIndex = '10';
|
|
||||||
|
|
||||||
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`;
|
||||||
@ -528,17 +523,11 @@ const Editor = (props: EditorProps): JSX.Element => {
|
|||||||
executeChallenge();
|
executeChallenge();
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: does it?
|
|
||||||
// The z-index needs increasing as ViewZones default to below the lines.
|
|
||||||
outputNode.style.zIndex = '10';
|
|
||||||
|
|
||||||
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`;
|
||||||
|
|
||||||
outputNode.style.top = getOutputZoneTop();
|
outputNode.style.top = getOutputZoneTop();
|
||||||
|
|
||||||
dataRef.current.outputNode = outputNode;
|
dataRef.current.outputNode = outputNode;
|
||||||
|
|
||||||
return outputNode;
|
return outputNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user