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

Apply grey color to disabled toggle slider even if it's checked #5235

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions public/css/icinga/forms.less
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ form.inline {
.icinga-controls input[type="checkbox"]:checked + .toggle-switch .toggle-slider {
background-color: @icinga-blue;
border: 1px solid;
border-color: @icinga-blue;
border-color: transparent;
}

.icinga-controls input[type="checkbox"]:focus + .toggle-switch .toggle-slider {
Expand All @@ -425,18 +425,12 @@ form.inline {
}

// Disabled inputs

.icinga-controls .toggle-switch.disabled {
.icinga-controls input[type="checkbox"]:disabled + .toggle-switch {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was previously done with the disabled class.

  • Why is this removed?
  • Who set this to begin with?
  • Is it used somewhere still?

opacity: .5;
cursor: default;

& > .toggle-slider {
background-color: @gray-light;
border-color: @gray-light;

&:before {
background-color: @gray-lighter;
border-color: @gray-light;
}
.toggle-slider:before {
background: @gray-light;
}
}

Expand Down
Loading