mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Use accessibilityValue(_:isEnabled:) instead of an empty-Text fallback
Avoids applying an empty accessibility value when there's only one pinned item, per review feedback.
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ struct PinnedItemsBannerView: View {
|
||||
.disabled(state.isLoading)
|
||||
.accessibilityElement(children: .ignore)
|
||||
.accessibilityLabel(Text(state.displayedMessage))
|
||||
.accessibilityValue(state.count > 1 ? Text(state.bannerIndicatorDescription) : Text(""))
|
||||
.accessibilityValue(String(state.bannerIndicatorDescription.characters), isEnabled: state.count > 1)
|
||||
}
|
||||
|
||||
private var viewAllButton: some View {
|
||||
|
||||
Reference in New Issue
Block a user