mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 19:51:08 -03:30
CodeEditor: fix hidden error message
This commit is contained in:
@@ -14,11 +14,11 @@ const LINE_HEIGHT = 24;
|
|||||||
const PADDING = 12;
|
const PADDING = 12;
|
||||||
|
|
||||||
const FocusWrapper = styled.div`
|
const FocusWrapper = styled.div`
|
||||||
&& + .pf-c-form__helper-text {
|
&& + .keyboard-help-text {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus-within + .pf-c-form__helper-text {
|
&:focus-within + .keyboard-help-text {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -164,7 +164,10 @@ function CodeEditor({
|
|||||||
/>
|
/>
|
||||||
</FocusWrapper>
|
</FocusWrapper>
|
||||||
{isKeyboardFocused && (
|
{isKeyboardFocused && (
|
||||||
<div className="pf-c-form__helper-text" aria-live="polite">
|
<div
|
||||||
|
className="pf-c-form__helper-text keyboard-help-text"
|
||||||
|
aria-live="polite"
|
||||||
|
>
|
||||||
{i18n._(t`Press Enter to edit. Press ESC to stop editing.`)}
|
{i18n._(t`Press Enter to edit. Press ESC to stop editing.`)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user