Skip to content

Commit 7add312

Browse files
authored
fix: 🐛 [IOSSDKBUG-1037] acc add selected state for tabview (#1321)
* fix: 🐛 [IOSSDKBUG-1037] acc add selected state for tabview * fix: 🐛 [IOSSDKBUG-1036] remove custom background Remove custom background for button in tab view to make sure the minimum contrast display can be achieved
1 parent 691692a commit 7add312

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Apps/Examples/Examples/FioriSwiftUICore/TabViewExample/TabViewDetailView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ struct TabViewDetailView: View {
7070
.tag(index)
7171
.tabItem {
7272
Label(model.name, systemImage: model.imageName)
73+
.accessibilityAddTraits(self.selection == index ? [.isSelected] : [])
7374
}
7475
}
7576
}

Apps/Examples/Examples/FioriSwiftUICore/ToolbarExample/ToolbarView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ struct ToolbarView: View {
206206
FioriButton { _ in
207207
Text(button.title)
208208
}
209-
.background(.yellow)
210209
.fioriButtonStyle(FioriSecondaryButtonStyle(maxWidth: .infinity).eraseToAnyFioriButtonStyle())
211210
.dynamicTypeSize(...DynamicTypeSize.xxxLarge)
212211
} else if button.type == 3 {

0 commit comments

Comments
 (0)