We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aaf87a commit a9a23afCopy full SHA for a9a23af
core/src/components/back-button/back-button.tsx
@@ -72,9 +72,13 @@ export class BackButton implements ComponentInterface {
72
73
render() {
74
const defaultBackButtonText = this.mode === 'ios' ? 'Back' : null;
75
- const backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back');
76
const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', defaultBackButtonText);
77
+ let backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back');
78
+ if (backButtonIcon === 'arrow-back' && document.dir === 'rtl') {
79
+ backButtonIcon = 'arrow-forward';
80
+ }
81
+
82
return (
83
<button
84
type="button"
0 commit comments