Skip to content

Commit f3be2d6

Browse files
committed
fix(@clayui/css): Sass maps passed into clay-form-control-variant mixin should use new keys. This allows variable theme overwrites using deprecated keys to still win.
issue #3987
1 parent 8986a81 commit f3be2d6

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

packages/clay-css/src/scss/atlas/variables/_forms.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,23 @@ $input-readonly-bg: $white !default;
7272
$input-readonly: () !default;
7373
$input-readonly: map-deep-merge(
7474
(
75-
bg: $input-readonly-bg,
75+
background-color: $input-readonly-bg,
7676
border-color: $input-border-color,
77-
focus-border-color: $input-focus-border-color,
78-
focus-box-shadow: none,
77+
focus: (
78+
border-color: $input-focus-border-color,
79+
box-shadow: none,
80+
),
7981
),
8082
$input-readonly
8183
);
8284

8385
$input-plaintext-readonly: () !default;
8486
$input-plaintext-readonly: map-deep-merge(
8587
(
86-
focus-border-color: $input-focus-border-color,
87-
focus-box-shadow: none,
88+
focus: (
89+
border-color: $input-focus-border-color,
90+
box-shadow: none,
91+
),
8892
),
8993
$input-plaintext-readonly
9094
);

packages/clay-css/src/scss/variables/_forms.scss

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,16 @@ $input-readonly-focus-color: null !default;
156156
$input-readonly: () !default;
157157
$input-readonly: map-deep-merge(
158158
(
159-
bg: $input-readonly-bg,
159+
background-color: $input-readonly-bg,
160160
border-color: $input-readonly-border-color,
161161
color: $input-readonly-color,
162162
cursor: $input-readonly-cursor,
163163
opacity: 1,
164-
focus-bg: $input-readonly-focus-bg,
165-
focus-border-color: $input-readonly-focus-border-color,
166-
focus-color: $input-readonly-focus-color,
164+
focus: (
165+
background-color: $input-readonly-focus-bg,
166+
border-color: $input-readonly-focus-border-color,
167+
color: $input-readonly-focus-color,
168+
),
167169
),
168170
$input-readonly
169171
);
@@ -174,7 +176,9 @@ $input-plaintext-readonly: map-deep-merge(
174176
border-radius: $input-border-radius,
175177
outline: 0,
176178
transition: $input-transition,
177-
focus-box-shadow: $input-focus-box-shadow,
179+
focus: (
180+
box-shadow: $input-focus-box-shadow,
181+
),
178182
),
179183
$input-plaintext-readonly
180184
);

packages/clay-css/src/scss/variables/_time.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ $clay-time-form-control-inset: map-deep-merge(
3434
margin-top: 0,
3535
text-align: center,
3636
width: 1.25rem,
37-
selection-bg: transparent,
38-
focus-bg: #b3d8fd,
37+
selection: (
38+
background-color: transparent,
39+
),
40+
focus: (
41+
background-color: #b3d8fd,
42+
),
3943
),
4044
$clay-time-form-control-inset
4145
);

0 commit comments

Comments
 (0)