Skip to content

Commit

Permalink
feat(radio): Added screenshot tests to M3 radio.
Browse files Browse the repository at this point in the history
Other changes:
- Fixed the theme mixin of M3 radio.
- Do not show ripple on keyboard focus.

PiperOrigin-RevId: 447536394
  • Loading branch information
abhiomkar authored and copybara-github committed May 9, 2022
1 parent b6e3370 commit 87e4f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 2 additions & 3 deletions components/radio/lib/_radio-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ $light-theme: (

@mixin theme($theme) {
$theme: theme.validate-theme($light-theme, $theme);
@include keys.declare-custom-properties(
$theme,
$prefix: $custom-property-prefix
@include theme.emit-theme-vars(
theme.create-theme-vars($theme, $custom-property-prefix)
);
}

Expand Down
4 changes: 0 additions & 4 deletions components/radio/lib/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,11 @@ export class Radio extends ActionElement {
protected handleFocus() {
this.focused = true;
this.showFocusRing = shouldShowStrongFocus();

this.ripple.beginFocus();
}

protected handleBlur() {
this.focused = false;
this.showFocusRing = false;

this.ripple.endFocus();
}

protected setFormData(formData: FormData) {
Expand Down

0 comments on commit 87e4f81

Please sign in to comment.