aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/controls/RadioCard.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/RadioCard.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/controls/RadioCard.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/RadioCard.tsx b/server/sonar-web/src/main/js/components/controls/RadioCard.tsx
index e11b30b4300..1e0a7ee30ba 100644
--- a/server/sonar-web/src/main/js/components/controls/RadioCard.tsx
+++ b/server/sonar-web/src/main/js/components/controls/RadioCard.tsx
@@ -39,6 +39,7 @@ interface Props extends RadioCardProps {
title: React.ReactNode;
titleInfo?: React.ReactNode;
vertical?: boolean;
+ label?: string;
}
export default function RadioCard(props: Props) {
@@ -49,6 +50,7 @@ export default function RadioCard(props: Props) {
recommended,
selected,
titleInfo,
+ label,
vertical = false,
noRadio = false,
} = props;
@@ -68,6 +70,7 @@ export default function RadioCard(props: Props) {
)}
onClick={isActionable && !disabled ? onClick : undefined}
role="radio"
+ aria-label={label}
tabIndex={0}
>
<h2 className="radio-card-header big-spacer-bottom">