Fleet UI: Allow users to scroll through disabled yml fields (#38715)

This commit is contained in:
RachelElysia
2026-01-26 09:35:22 -05:00
committed by GitHub
parent e2019890b4
commit 6593137088
3 changed files with 9 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
- Fleet UI: Allow users to scroll through disabled yml fields
+1 -1
View File
@@ -7,7 +7,7 @@
}
}
&--disabled {
@include disabled;
@include disabled($allow-pointer-events: true);
}
}
+7 -2
View File
@@ -118,12 +118,17 @@ $max-width: 2560px;
}
}
@mixin disabled {
@mixin disabled($allow-pointer-events: false) {
opacity: 0.5;
filter: grayscale(0.5);
pointer-events: none;
cursor: default;
@if $allow-pointer-events {
pointer-events: auto; // Allows text selection/scroll in disabled state
} @else {
pointer-events: none;
}
// Must override
&:hover,
&:focus {