From cc818bca3cd541b1d24a0e9d7242a39be15d30a5 Mon Sep 17 00:00:00 2001 From: Yin Zhang Date: Wed, 13 Sep 2023 16:28:42 -0700 Subject: [PATCH] Migration to use the new MDC-based Angular Components. Components migrated: radio PiperOrigin-RevId: 565194249 --- frontend/app/common/angular/BUILD | 2 +- .../components/capture_profile/capture_profile_dialog/BUILD | 2 +- .../capture_profile_dialog/capture_profile_dialog_module.ts | 4 ++-- frontend/styles.scss | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/app/common/angular/BUILD b/frontend/app/common/angular/BUILD index d695dec40..d06a95bd0 100644 --- a/frontend/app/common/angular/BUILD +++ b/frontend/app/common/angular/BUILD @@ -107,7 +107,7 @@ ts_library( ) ts_library( - name = "angular_material_legacy_radio", + name = "angular_material_radio", srcs = [], deps = [ "@npm//@angular/material", diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/BUILD b/frontend/app/components/capture_profile/capture_profile_dialog/BUILD index 23e02ffe6..dae38d462 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/BUILD +++ b/frontend/app/components/capture_profile/capture_profile_dialog/BUILD @@ -23,8 +23,8 @@ xprof_ng_module( "@org_xprof//frontend/app/common/angular:angular_material_expansion", "@org_xprof//frontend/app/common/angular:angular_material_form_field", "@org_xprof//frontend/app/common/angular:angular_material_input", - "@org_xprof//frontend/app/common/angular:angular_material_legacy_radio", "@org_xprof//frontend/app/common/angular:angular_material_legacy_tooltip", + "@org_xprof//frontend/app/common/angular:angular_material_radio", "@org_xprof//frontend/app/common/angular:angular_material_select", "@org_xprof//frontend/app/common/interfaces", ], diff --git a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts index 242d32ac2..b42e89f71 100644 --- a/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts +++ b/frontend/app/components/capture_profile/capture_profile_dialog/capture_profile_dialog_module.ts @@ -6,7 +6,7 @@ import {MatButtonModule} from '@angular/material/button'; import {MatDialogModule} from '@angular/material/dialog'; import {MatFormFieldModule} from '@angular/material/form-field'; import {MatInputModule} from '@angular/material/input'; -import {MatLegacyRadioModule} from '@angular/material/legacy-radio'; +import {MatRadioModule} from '@angular/material/radio'; import {MatSelectModule} from '@angular/material/select'; import {MatLegacyTooltipModule} from '@angular/material/legacy-tooltip'; import {BrowserModule} from '@angular/platform-browser'; @@ -25,7 +25,7 @@ import {CaptureProfileDialog} from './capture_profile_dialog'; MatExpansionModule, MatFormFieldModule, MatInputModule, - MatLegacyRadioModule, + MatRadioModule, MatSelectModule, MatLegacyTooltipModule, ], diff --git a/frontend/styles.scss b/frontend/styles.scss index a4c62a485..cb4931538 100644 --- a/frontend/styles.scss +++ b/frontend/styles.scss @@ -39,6 +39,7 @@ $theme: mat.define-light-theme( @include mat.dialog-theme($theme); @include mat.progress-spinner-theme($theme); @include mat.progress-bar-theme($theme); +@include mat.radio-theme($theme); html, body { height: 100%;