Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(radio): bundle styles with component #15294

Merged
merged 8 commits into from
Feb 7, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -552,13 +552,13 @@
@include progress-linear($progress-linear-theme-map);
}

@if is-used('igx-radio', $exclude) {
$radio-theme-map: radio-theme(
$schema: $schema,
);
$radio-theme-map: meta.call($theme-handler, $radio-theme-map);
@include radio($radio-theme-map);
}
// @if is-used('igx-radio', $exclude) {
// $radio-theme-map: radio-theme(
// $schema: $schema,
// );
// $radio-theme-map: meta.call($theme-handler, $radio-theme-map);
// @include radio($radio-theme-map);
// }

@if is-used('igx-query-builder', $exclude) {
$query-builder-theme-map: query-builder-theme(
Expand Down
4 changes: 4 additions & 0 deletions projects/igniteui-angular/src/lib/radio/radio.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@use 'themes/base';
@use 'themes/shared';
@use 'themes/light';
@use 'themes/dark';
5 changes: 5 additions & 0 deletions projects/igniteui-angular/src/lib/radio/radio.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
HostBinding,
HostListener,
Input,
ViewEncapsulation,
booleanAttribute
} from '@angular/core';
import { ControlValueAccessor } from '@angular/forms';
Expand Down Expand Up @@ -33,11 +34,15 @@ import { CheckboxBaseDirective } from '../checkbox/checkbox-base.directive';
multi: true
}],
templateUrl: 'radio.component.html',
styleUrl: "radio.component.css",
simeonoff marked this conversation as resolved.
Show resolved Hide resolved
encapsulation: ViewEncapsulation.None,
imports: [IgxRippleDirective]
})

export class IgxRadioComponent
extends CheckboxBaseDirective
implements AfterViewInit, ControlValueAccessor, EditorProvider {

/** @hidden @internal */
public blurRadio = new EventEmitter();

Expand Down
Loading