mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
CodeEditor: fix hidden error message
This commit is contained in:
parent
2995cde7cb
commit
c975f65bbc
@ -14,11 +14,11 @@ const LINE_HEIGHT = 24;
|
||||
const PADDING = 12;
|
||||
|
||||
const FocusWrapper = styled.div`
|
||||
&& + .pf-c-form__helper-text {
|
||||
&& + .keyboard-help-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:focus-within + .pf-c-form__helper-text {
|
||||
&:focus-within + .keyboard-help-text {
|
||||
display: block;
|
||||
}
|
||||
`;
|
||||
@ -164,7 +164,10 @@ function CodeEditor({
|
||||
/>
|
||||
</FocusWrapper>
|
||||
{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.`)}
|
||||
</div>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user