Skip to content

Commit 87e4f81

Browse files
abhiomkarcopybara-github
authored andcommitted
feat(radio): Added screenshot tests to M3 radio.
Other changes: - Fixed the theme mixin of M3 radio. - Do not show ripple on keyboard focus. PiperOrigin-RevId: 447536394
1 parent b6e3370 commit 87e4f81

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

components/radio/lib/_radio-theme.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ $light-theme: (
6969

7070
@mixin theme($theme) {
7171
$theme: theme.validate-theme($light-theme, $theme);
72-
@include keys.declare-custom-properties(
73-
$theme,
74-
$prefix: $custom-property-prefix
72+
@include theme.emit-theme-vars(
73+
theme.create-theme-vars($theme, $custom-property-prefix)
7574
);
7675
}
7776

components/radio/lib/radio.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,15 +208,11 @@ export class Radio extends ActionElement {
208208
protected handleFocus() {
209209
this.focused = true;
210210
this.showFocusRing = shouldShowStrongFocus();
211-
212-
this.ripple.beginFocus();
213211
}
214212

215213
protected handleBlur() {
216214
this.focused = false;
217215
this.showFocusRing = false;
218-
219-
this.ripple.endFocus();
220216
}
221217

222218
protected setFormData(formData: FormData) {

0 commit comments

Comments
 (0)