Feature/improve ux of toggle component (#3769)

* Improve usability via cursor styles

* Update changelog
This commit is contained in:
Thomas Kaul 2024-09-16 15:06:02 +02:00 committed by GitHub
parent 38ac3d387b
commit d703088611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Improved the usability of the toggle component
- Switched to the accounts endpoint in the holding detail dialog
## 2.107.1 - 2024-09-12

View File

@ -7,7 +7,10 @@
<mat-radio-button
class="d-inline-flex"
[disabled]="isLoading"
[ngClass]="{ 'cursor-pointer': !isLoading }"
[ngClass]="{
'cursor-default': option.value === optionFormControl.value,
'cursor-pointer': !isLoading && option.value !== optionFormControl.value
}"
[value]="option.value"
>{{ option.label }}</mat-radio-button
>