Skip to content

Commit 141298b

Browse files
committed
feat: update the warning message for the Caps Lock key
1 parent e7cb7d0 commit 141298b

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

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

+2-10
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,19 @@
55
margin-block: -1rem;
66
padding-inline: 1rem;
77
padding-block: 1rem;
8-
user-select: none;
98
}
109

1110
.messageArea {
1211
display: flex;
13-
position: absolute;
14-
inset: 0;
1512
align-items: center;
1613
justify-content: center;
1714
}
1815

1916
.messageText {
20-
padding-inline: 1rem;
17+
padding-inline: 2rem;
2118
padding-block: 0.5rem;
19+
border: var(--separator-border);
2220
color: var(--Popup__color);
2321
background-color: var(--Popup__background-color);
2422
box-shadow: var(--Popup--small__box-shadow);
2523
}
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.capsLockMessageArea}>
118+
<div className={styles.messageArea}>
119119
<div className={styles.messageText}>
120120
<FormattedMessage
121121
id="textArea.capsLock.message"

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

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
font-kerning: none;
44
font-variant: none;
55
line-height: 1.2;
6+
user-select: none;
67
}
78

89
.wrap {

packages/keybr-themes/lib/themes/theme.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
--Popup__color: var(--text-color);
7979
--Popup__background-color: var(--background-color);
8080
--Popup__box-shadow: 0 0.5rem 3rem var(--shadow-color);
81-
--Popup--small__box-shadow: 0 0.5rem 1rem var(--shadow-color);
81+
--Popup--small__box-shadow: 0 0rem 1rem var(--shadow-color);
8282

8383
--Spotlight__background-color: #00000033;
8484
--Spotlight__border-color: var(--secondary-l2);

0 commit comments

Comments
 (0)