Make the checkbox to readonly to preserve the Group plan value on form submission (#24004)

GitOrigin-RevId: 555c69952d64e050f0f30669ee8d69a511f6a08d
This commit is contained in:
Rebeka Dekany 2025-03-04 13:43:00 +01:00 committed by Copybot
parent 55e14b9b21
commit 5010c91c79
2 changed files with 14 additions and 5 deletions

View file

@ -204,3 +204,8 @@
color: $color;
}
}
@mixin input-disabled-styles {
background-color: $input-disabled-bg;
border-color: $input-disabled-border-color;
}

View file

@ -24,11 +24,6 @@
}
&:disabled {
@mixin input-disabled-styles {
background-color: $input-disabled-bg;
border-color: $input-disabled-border-color;
}
@include input-disabled-styles;
&[type='checkbox']:indeterminate {
@ -73,6 +68,15 @@
}
}
// Fake disabled checkbox style
.readonly-disabled-checkbox input.form-check-input {
@include input-disabled-styles;
&:hover:not(:disabled):checked {
@include input-disabled-styles;
}
}
.form-switch {
.form-check-input {
--bs-form-check-bg: var(--bg-dark-tertiary);