Skip to content

Commit e2d9117

Browse files
authored
UX: change to input field + label styling (#24060)
1 parent b6dc929 commit e2d9117

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

app/assets/stylesheets/common/base/discourse.scss

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ label {
135135
display: flex;
136136
margin-bottom: 5px;
137137
align-items: flex-start;
138+
color: var(--primary-high);
139+
140+
&:not(.checkbox-label) {
141+
font-weight: bold;
142+
}
138143
> .d-icon {
139144
align-self: center;
140145
margin-right: 4px;
@@ -225,7 +230,7 @@ input {
225230
margin-bottom: 9px;
226231
color: var(--primary);
227232
background-color: var(--secondary);
228-
border: 1px solid var(--primary-medium);
233+
border: 1px solid var(--primary-400);
229234
border-radius: var(--d-input-border-radius);
230235
&:focus {
231236
@include default-focus;
@@ -269,7 +274,7 @@ textarea {
269274
box-sizing: border-box;
270275
height: auto;
271276
background-color: var(--secondary);
272-
border: 1px solid var(--primary-medium);
277+
border: 1px solid var(--primary-400);
273278
border-radius: 0;
274279

275280
&:focus {

app/assets/stylesheets/common/select-kit/combo-box.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
.select-kit-header {
2929
background: var(--secondary);
30-
border-color: var(--primary-medium);
30+
border-color: var(--primary-400);
3131

3232
&.is-focused {
3333
@include default-focus;

app/assets/stylesheets/common/select-kit/multi-select.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
.multi-select-header {
4949
background: var(--secondary);
50-
border-color: var(--primary-medium);
50+
border-color: var(--primary-400);
5151

5252
.formatted-selection {
5353
margin: 0;

0 commit comments

Comments
 (0)