You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I strongly advise retaining the text for improved web accessibility. However, I understand your desire to hide it visually. This can be achieved using CSS since the text is accessible as a shadow part. The code snippet below demonstrates how to hide the text while ensuring it remains accessible to screen readers.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Describe the Feature Request
I want to be able to remove the text from the ion-back-button without using text="", because this breaks the page transitions like mentioned here.
Describe the Use Case
Sometimes, you want to use the ion-back-button without any text, just the icon.
Describe Preferred Solution
Explicitly setting text to null should remove any text from the ion-back-button, undefined can be still used to set the default 'Back' text.
Describe Alternatives
No response
Related Code
Link to a repo
Additional Information
Ionic forum link to the topic here
No response
The text was updated successfully, but these errors were encountered: