Skip to content

Commit

Permalink
app demo : add text libelle slider
Browse files Browse the repository at this point in the history
  • Loading branch information
Tayebsed93 authored and ludovic35 committed Jun 6, 2024
1 parent 4df4d8a commit 652f86c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- [DemoApp] A11y - Slider has no visible text ([#832](https://github.com/Orange-OpenSource/ods-ios/issues/832))
- [DemoApp] A11y - Irrelevant Colour palette page title: page title is "Palette" ([#730](https://github.com/Orange-OpenSource/ods-ios/issues/730))
- [DemoApp] A11y - Bars-navigation component accessibility issues ([#830](https://github.com/Orange-OpenSource/ods-ios/issues/830))
- [DemoApp] A11y - Target size is too small for info and chevron components, difficult to tap without mistake. ([#732](https://github.com/Orange-OpenSource/ods-ios/issues/732))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ struct SliderVariant: View {
ScrollView {
VStack {
if model.showValue {
Text(String(format: "%.2f", value))
.odsFont(.bodyLRegular)
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityHidden(true)
HStack {
Text("screens.components.sliders.sample.volume")
.odsFont(.bodyLRegular)
Text(String(format: "%.2f", value))
.odsFont(.bodyLRegular)
}
.frame(maxWidth: .infinity, alignment: .leading)
.accessibilityHidden(true)
}

if model.stepped {
Expand Down

0 comments on commit 652f86c

Please sign in to comment.