Skip to content

Commit b72b9ff

Browse files
authored
Merge branch 'develop' into 554-bug-l10n-in-rtl-mode-code-sample-aligned-to-right-trailing
2 parents 4ecce97 + e15f69f commit b72b9ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
### Fixed
2525

2626
- [DesignToolbox] In RTL mode code sample text not aligned on the left ([#554](https://github.com/Orange-OpenSource/ouds-ios/issues/554))
27+
- [DesignToolbox] Chevron for navigation link pointing to bad direction in RTL mode ([#553](https://github.com/Orange-OpenSource/ouds-ios/issues/553))
2728
- [DesignToolbox] Broken wording in radio button page
2829
- [DesignToolbox] Update Checkbox and Radio button assets on the screen of component list ([#519](https://github.com/Orange-OpenSource/ouds-ios/issues/519))
2930

DesignToolbox/DesignToolbox/Pages/Utils/Elements/DesignToolboxVariantElement.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct DesignToolboxVariantElement: View {
1919

2020
@Environment(\.theme) private var theme
2121
@Environment(\.colorScheme) private var colorScheme
22+
@Environment(\.layoutDirection) private var layoutDirection
2223

2324
// MARK: Stored properties
2425

@@ -41,8 +42,9 @@ struct DesignToolboxVariantElement: View {
4142
Spacer()
4243
Image(systemName: "chevron.right")
4344
.foregroundColor(theme.colors.colorContentDefault.color(for: colorScheme))
44-
.padding(.trailing, theme.spaces.spaceFixedMedium)
45+
.padding(layoutDirection == .rightToLeft ? .leading : .trailing, theme.spaces.spaceFixedMedium)
4546
.accessibilityHidden(true)
47+
.scaleEffect(layoutDirection == .rightToLeft ? -1 : 1, anchor: .center)
4648
}
4749
}
4850
}

0 commit comments

Comments
 (0)