[fix]: [pfe-navigation 1.x] doesn't render slot="mobile-login" unless slot"mobile-language" exists.
Discovered in our site, pfe-navigation doesn't render slot="mobile-login" unless slot"mobile-language" exists.
Impacted component(s)
In our HTML, we have:
<a href="/login" slot="mobile-login" pfe-icon="web-user" tabindex="-1">Log in</a>
This results in the Log in link not being displayed on mobile.
But if we alter it to include:
<a href="/login" class="rh-user-loggedout" slot="mobile-login" pfe-icon="web-user" tabindex="-1">Log in</a> <a href="/url-to-language-page" slot="mobile-language" pfe-icon="web-globe">English</a>
Then both links render. The issue is, our site does not have a mobile language link.
Steps to reproduce
- Add a slot in HTML for mobile-login only.
- Observe that the slot isn't used.
Expected behavior
A mobile-login link can be used by itself.
Screenshots
@castastrophe Hey! Any chance the linked PR that would resolve this issue will be merged in the near future?
@ryanissamson Hey Ryan, it's on our radar but is not a high priority at the moment. If you would like to advocate for a bump in priority, please reach out the @kylebuch8 or @starryeyez024. Thanks!