From 84bfd8f725cd49e4b869013585165561e20cd240 Mon Sep 17 00:00:00 2001 From: Aliou SARR Date: Wed, 25 Oct 2023 09:54:20 +0200 Subject: [PATCH] [RadioButton]add accessibility identifier on Radio Group title --- .../RadioButtonAccessibilityIdentifier.swift | 3 +++ .../RadioButton/View/SwiftUI/RadioButtonGroupView.swift | 1 + .../RadioButton/View/UIKit/RadioButtonUIGroupView.swift | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/core/Sources/Components/RadioButton/AccessibilityIdentifier/RadioButtonAccessibilityIdentifier.swift b/core/Sources/Components/RadioButton/AccessibilityIdentifier/RadioButtonAccessibilityIdentifier.swift index 6fd2641a2..4c0fc4400 100644 --- a/core/Sources/Components/RadioButton/AccessibilityIdentifier/RadioButtonAccessibilityIdentifier.swift +++ b/core/Sources/Components/RadioButton/AccessibilityIdentifier/RadioButtonAccessibilityIdentifier.swift @@ -12,6 +12,9 @@ public enum RadioButtonAccessibilityIdentifier { public static let radioButton = "spark-radio-button" + /// The radio group title accessibility identifier. + public static let radioButtonGroupTitle = "spark-radio-button-group-title" + public static func radioButtonIdentifier(id: ID) -> String { return "\(radioButton)-\(id)" } diff --git a/core/Sources/Components/RadioButton/View/SwiftUI/RadioButtonGroupView.swift b/core/Sources/Components/RadioButton/View/SwiftUI/RadioButtonGroupView.swift index 8af8d239a..dd1bb6d53 100644 --- a/core/Sources/Components/RadioButton/View/SwiftUI/RadioButtonGroupView.swift +++ b/core/Sources/Components/RadioButton/View/SwiftUI/RadioButtonGroupView.swift @@ -108,6 +108,7 @@ public struct RadioButtonGroupView