From a39238d9d73153032bc8b8d83e570a08df4beedf Mon Sep 17 00:00:00 2001 From: Tayeb Sedraia Date: Thu, 6 Jun 2024 11:23:32 +0200 Subject: [PATCH] app demo : add text libelle slider (#834) --- CHANGELOG.md | 1 + .../Components/Pages/Sliders/SlidersVariant.swift | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f42357b5..2694d7fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Sliders/SlidersVariant.swift b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Sliders/SlidersVariant.swift index 8fcdf64d..6cc0721b 100644 --- a/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Sliders/SlidersVariant.swift +++ b/OrangeDesignSystemDemo/OrangeDesignSystemDemo/Screens/Components/Pages/Sliders/SlidersVariant.swift @@ -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 {