Skip to content

Commit a45aa42

Browse files
authored
Merge branch 'main' into chart-color-per-data-point
2 parents b6e3a6c + b7b3d09 commit a45aa42

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

projects/components/src/radio/radio-group.component.scss

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@
5858
.radio-button-label {
5959
@include body-2-regular($gray-7);
6060
}
61+
62+
&.disabled {
63+
&.mat-radio-checked .mat-radio-container .mat-radio-outer-circle {
64+
background: $gray-3;
65+
}
66+
67+
.mat-radio-container .mat-radio-outer-circle {
68+
background: $gray-1;
69+
}
70+
71+
.radio-button-label {
72+
color: $gray-5;
73+
}
74+
}
6175
}
6276

6377
.radio-button:last-child {

projects/components/src/radio/radio-group.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ import { RadioOption } from './radio-option';
1515
(change)="this.onRadioChange($event)"
1616
[disabled]="this.disabled"
1717
>
18-
<mat-radio-button *ngFor="let option of options" class="radio-button" [value]="option.value">
18+
<mat-radio-button
19+
*ngFor="let option of options"
20+
class="radio-button"
21+
[ngClass]="{ disabled: this.disabled }"
22+
[value]="option.value"
23+
>
1924
<ht-label class="radio-button-label" [label]="option.label"></ht-label>
2025
</mat-radio-button>
2126
</mat-radio-group>

0 commit comments

Comments
 (0)