User auth pages keep one H1 when the theme hides the sign-in title
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
With a theme that sets signIn.showTitle: false, /auth/#/signin-or-signup, /auth/#/facilities and /auth/#/set-password render no H1. Their only H1 is AuthBase's sign-in title, which that setting hides. They also register no title with usePageTitle, so UserAuthLayout renders no hidden H1 for them. #4922 requires exactly one H1 on every page.
Complexity: Low Target branch: develop
The Change
AuthSelect,FacilitySelectandNewPasswordPageshould each register a title withusePageTitle, andUserAuthLayoutrenders it as a hidden H1.- Each title needs a new string.
- When the sign-in title shows, it stays the only H1, as on
SignInPageandPictureSignInPage.
How to Get There
- Enable a theme whose
signInsetsshowTitle: false. - Open each of the three routes.
document.querySelectorAll('h1').lengthis0.
Acceptance Criteria
- [ ] With
signIn.showTitle: false, each of the three routes renders exactly one H1. It is visually hidden and carries the page's title. - [ ] With
signIn.showTitle: true, each renders exactly one H1, the sign-in title. - [ ] Each page's tab title is its title followed by " - Kolibri".
- [ ] Jest tests cover each page's H1 count under both settings.
References
AuthBase.vue#L35-L41: the sign-in title thatshowTitlehides.- #15463 adds
UserAuthLayout's hidden H1 and registersSignInPage's title withhasVisibleHeading: themeConfig.signIn.showTitle.
AI usage
Claude Code found this gap while reviewing #15463 and drafted this issue.
rtibbles Blocked on #15463 (open, changes requested): UserAuthLayout's hidden H1 and the hasVisibleHeading registration this issue builds on aren't on develop.
- Wait for #15463 to merge, or
- stack a PR on
issue-15393-a5eb98?
Wait, this issue should have been marked as blocked by the issue that #15463 resolves.