Fleet UI: Add enable automations slider to query forms (#23562)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user