Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(): adding aria-hidden no longer disables automatic rtl switching #954

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

liamdebeasi
Copy link
Contributor

See also: ionic-team/ionic-framework#23078

This PR fixes an issue where setting aria-hidden="true" would cause flipRtl to always equal false unless this.flipRtl was explicitly set.

The reason this happened was aria-hidden="true" caused the component to not automatically generate an aria-label. We used this label to determine whether or not we should automatically flip the icon according to RTL mode.

To fix this, I created a private variable that holds the icon name. We reference this icon to determine the state of flipRtl, and we also use this variable when auto generating an aria-label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant