Skip to content

Commit 2c299fb

Browse files
authored
Scope button and input styles to LiveKit classes within the data theme (#1218)
1 parent 22a82ef commit 2c299fb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.changeset/weak-frogs-fold.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/components-styles": minor
3+
---
4+
5+
Scope button and input styles to LiveKit classes within the data theme

packages/styles/scss/_preflight.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
font-family: var(--font-family);
99
color: var(--fg);
1010

11-
button,
12-
input {
13-
font: inherit;
14-
line-height: inherit;
15-
}
16-
17-
.button {
18-
user-select: none;
19-
}
20-
2111
.list {
2212
list-style: none;
2313
margin: 0;

packages/styles/scss/components/controls/_button.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
border-radius: var(--border-radius);
1313
cursor: pointer;
1414
white-space: nowrap;
15+
font-size: inherit;
16+
line-height: inherit;
17+
user-select: none;
1518

1619
&:not(:disabled):hover {
1720
background-color: var(--control-hover-bg);

packages/styles/scss/prefabs/chat.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
}
112112

113113
.chat-form-input {
114+
font-size: inherit;
115+
line-height: inherit;
114116
width: 100%;
115117
}
116118

0 commit comments

Comments
 (0)