Fleet UI: Add enable automations slider to query forms (#23562)

This commit is contained in:
RachelElysia
2024-11-13 09:32:59 -05:00
committed by GitHub
parent e5febe960d
commit 1fed4759d8
13 changed files with 316 additions and 19 deletions
@@ -8,9 +8,10 @@ import { IFormFieldProps } from "components/forms/FormField/FormField";
interface ISliderProps {
onChange: () => void;
value: boolean;
inactiveText: string;
activeText: string;
inactiveText: JSX.Element | string;
activeText: JSX.Element | string;
className?: string;
helpText?: JSX.Element | string;
}
const baseClass = "fleet-slider";
@@ -24,7 +24,7 @@
&__wrapper {
display: flex;
align-items: center;
height: 40px;
height: 24px; // Noticeable with help text below slider
}
&__dot {
@@ -40,10 +40,16 @@
}
&__label {
display: flex;
vertical-align: middle;
gap: $pad-small; // For supporting icons
font-size: $x-small;
font-weight: $regular;
text-align: left;
vertical-align: text-bottom;
margin-left: $pad-small;
}
&__help-text {
@include help-text;
}
}