fix(kube/setup): add a11y labels [EE-6747] (#11307)

pull/11325/head
Chaim Lev-Ari 9 months ago committed by GitHub
parent 82516620e7
commit 31c5a82749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -56,11 +56,13 @@ export function EnableMetricsInput({ value, error, environmentId }: Props) {
className="mb-0" className="mb-0"
size="large" size="large"
errors={error} errors={error}
inputId="kubeSetup-metricsToggle"
> >
<Field <Field
name="useServerMetrics" name="useServerMetrics"
as={Switch} as={Switch}
checked={value} checked={value}
id="kubeSetup-metricsToggle"
onChange={(checked: boolean) => { onChange={(checked: boolean) => {
// if turning off, just set the value // if turning off, just set the value
if (!checked) { if (!checked) {

Loading…
Cancel
Save