Skip to content

Commit 5649d90

Browse files
committed
Merge branch 'v2-dev' of https://github.com/materializecss/materialize into refactor-components
2 parents a67632b + bf030cd commit 5649d90

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

components/checkbox/_checkboxes.scss

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,11 @@
4444
}
4545

4646
&:not(:checked):disabled + span:not(.lever):before {
47-
border: none;
48-
background-color: var(--md-sys-color-on-surface);
47+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
48+
}
49+
50+
&:disabled + span:not(.lever) {
51+
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
4952
}
5053

5154
// Focused styles
@@ -74,8 +77,8 @@
7477
}
7578

7679
&:disabled + span:before {
77-
border-right: 2px solid var(--md-sys-color-on-surface);
78-
border-bottom: 2px solid var(--md-sys-color-on-surface);
80+
border-right: 2px solid color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
81+
border-bottom: 2px solid color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
7982
}
8083
}
8184

@@ -97,7 +100,7 @@
97100

98101
// Disabled indeterminate
99102
&:disabled + span:not(.lever):before {
100-
border-right: 2px solid var(--md-sys-color-on-surface);
103+
border-right: 2px solid color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
101104
background-color: transparent;
102105
}
103106
}
@@ -184,16 +187,15 @@
184187
}
185188

186189
&:disabled:not(:checked) + span:not(.lever):after {
187-
border-color: transparent;
188-
background-color: var(--md-sys-color-on-surface);
190+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
189191
}
190192

191193
&:disabled:checked + span:not(.lever):before {
192194
background-color: transparent;
193195
}
194196

195197
&:disabled:checked + span:not(.lever):after {
196-
background-color: var(--md-sys-color-on-surface);
197-
border-color: var(--md-sys-color-on-surface);
198+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
199+
border: none;
198200
}
199201
}

components/radio-button/_radio-buttons.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,30 +83,30 @@
8383

8484
/* Disabled Radio With gap */
8585
[type="radio"].with-gap:disabled:checked + span:before {
86-
border: 2px solid var(--md-sys-color-on-surface);
86+
border: 2px solid color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
8787
}
8888

8989
[type="radio"].with-gap:disabled:checked + span:after {
9090
border: none;
91-
background-color: var(--md-sys-color-on-surface);
91+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
9292
}
9393

9494
/* Disabled style */
9595
[type="radio"]:disabled:not(:checked) + span:before,
9696
[type="radio"]:disabled:checked + span:before {
9797
background-color: transparent;
98-
border-color: var(--md-sys-color-on-surface);
98+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
9999
}
100100

101101
[type="radio"]:disabled + span {
102-
color: var(--md-sys-color-on-surface);
102+
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
103103
}
104104

105105
[type="radio"]:disabled:not(:checked) + span:before {
106-
border-color: var(--md-sys-color-on-surface);
106+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
107107
}
108108

109109
[type="radio"]:disabled:checked + span:after {
110-
background-color: var(--md-sys-color-on-surface);
111-
border-color: var(--md-sys-color-on-surface);
110+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
111+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
112112
}

0 commit comments

Comments
 (0)