]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16731 [891571] State: Selected state of the element is missing or incorrect
authorGuillaume Peoc'h <guillaume.peoch@sonarsource.com>
Tue, 9 Aug 2022 13:10:35 +0000 (15:10 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 11 Aug 2022 20:03:48 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/controls/ButtonToggle.tsx

index a31e4588d3c55522af0f85bfe423fa9c162c8ee3..841337734dd6c646eeb060fc3ba0f6b8430155cb 100644 (file)
@@ -48,6 +48,7 @@ export default function ButtonToggle(props: ButtonToggleProps) {
           <Button
             onClick={() => option.value !== value && props.onCheck(option.value)}
             disabled={disabled}
+            aria-current={option.value === value}
             data-value={option.value}
             className={classNames({ selected: option.value === value })}>
             {option.label}