Skip to content

Commit 678b30e

Browse files
abhiomkarcopybara-github
authored andcommitted
refactor(radio): Use _mixins Sass module when import radio mixins.
PiperOrigin-RevId: 324662556
1 parent 1607ec5 commit 678b30e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

packages/radio/src/mwc-radio.scss

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ See the License for the specific language governing permissions and
1515
limitations under the License.
1616
*/
1717

18-
@use '@material/radio';
18+
@use '@material/radio/mixins' as radio-mixins;
19+
@use '@material/radio/variables' as radio-variables;
1920
@use '@material/ripple';
2021

21-
@include radio.core-styles();
22+
@include radio-mixins.core-styles();
2223
@include ripple.common();
2324

2425
:host {
@@ -28,8 +29,8 @@ limitations under the License.
2829

2930
.mdc-radio {
3031
vertical-align: bottom;
31-
@include radio.unchecked-stroke-color(var(--mdc-radio-unchecked-color, #{radio.$unchecked-color}));
32-
@include radio.disabled-unchecked-stroke-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color}));
33-
@include radio.disabled-checked-stroke-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color}));
34-
@include radio.disabled-ink-color(var(--mdc-radio-disabled-color, #{radio.$disabled-circle-color}));
32+
@include radio-mixins.unchecked-stroke-color(var(--mdc-radio-unchecked-color, #{radio-variables.$unchecked-color}));
33+
@include radio-mixins.disabled-unchecked-stroke-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color}));
34+
@include radio-mixins.disabled-checked-stroke-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color}));
35+
@include radio-mixins.disabled-ink-color(var(--mdc-radio-disabled-color, #{radio-variables.$disabled-circle-color}));
3536
}

0 commit comments

Comments
 (0)