From a9a23afce68ec02aec98506d16137d546ecfcd5a Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 14 Jan 2019 16:37:20 -0600 Subject: [PATCH] fix(rtl): fix rtl back button default (#17109) Closes #15357 --- core/src/components/back-button/back-button.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/components/back-button/back-button.tsx b/core/src/components/back-button/back-button.tsx index 5f55176344..da593edaaa 100644 --- a/core/src/components/back-button/back-button.tsx +++ b/core/src/components/back-button/back-button.tsx @@ -72,9 +72,13 @@ export class BackButton implements ComponentInterface { render() { const defaultBackButtonText = this.mode === 'ios' ? 'Back' : null; - const backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back'); const backButtonText = this.text != null ? this.text : this.config.get('backButtonText', defaultBackButtonText); + let backButtonIcon = this.icon != null ? this.icon : this.config.get('backButtonIcon', 'arrow-back'); + if (backButtonIcon === 'arrow-back' && document.dir === 'rtl') { + backButtonIcon = 'arrow-forward'; + } + return (