mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(icon): update ionicons to flip for rtl (#17196)
- updates to latest ionicons 4.55 and adds rtl test - includes e2e test for RTL icons references #17012
This commit is contained in:
@ -72,13 +72,9 @@ 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 (
|
||||
<button
|
||||
type="button"
|
||||
|
Reference in New Issue
Block a user