Skip to content

Commit 6553f6d

Browse files
authored
feat: Move the 'Caps lock is on' dialog below the text (#370)
Co-authored-by: Mark Erwin <>
1 parent 30d1b85 commit 6553f6d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/keybr-textinput-ui/lib/TextArea.module.less

+6
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,9 @@
2323
background-color: var(--Popup__background-color);
2424
box-shadow: var(--Popup--small__box-shadow);
2525
}
26+
27+
.capsLockMessageArea {
28+
position: relative;
29+
padding: 5px 10px;
30+
font-weight: bold;
31+
}

packages/keybr-textinput-ui/lib/TextArea.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function TextArea({
115115
focus={demo || focus}
116116
/>
117117
{!demo && focus && ModifierState.capsLock && (
118-
<div className={styles.messageArea}>
118+
<div className={styles.capsLockMessageArea}>
119119
<div className={styles.messageText}>
120120
<FormattedMessage
121121
id="textArea.capsLock.message"

0 commit comments

Comments
 (0)