Skip to content

Commit

Permalink
feat: Move the 'Caps lock is on' dialog below the text (#370)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Erwin <>
  • Loading branch information
Merwin4 authored Jan 17, 2025
1 parent 30d1b85 commit 6553f6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/keybr-textinput-ui/lib/TextArea.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,9 @@
background-color: var(--Popup__background-color);
box-shadow: var(--Popup--small__box-shadow);
}

.capsLockMessageArea {
position: relative;
padding: 5px 10px;
font-weight: bold;
}
2 changes: 1 addition & 1 deletion packages/keybr-textinput-ui/lib/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export function TextArea({
focus={demo || focus}
/>
{!demo && focus && ModifierState.capsLock && (
<div className={styles.messageArea}>
<div className={styles.capsLockMessageArea}>
<div className={styles.messageText}>
<FormattedMessage
id="textArea.capsLock.message"
Expand Down

0 comments on commit 6553f6d

Please sign in to comment.