-
Notifications
You must be signed in to change notification settings - Fork 39
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
Update: Make item titles optional, create fallback title for dialogs and strapline buttons (fixes #308) #309
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fallback title for notify dialog works as expected thanks @swashbuck.
However, having required title
meant the strapline button always had a title. In the instance no title
or strapline
is set, .narrative__strapline-btn
has no visual text or aria-label
and the button collapses. See screen shot below.
To prevent this we could do one of the following:
- provide a default strapline title e.g. "Find out more"
- set
titleDialog
as strapline title. - set
titleDialog
as the straplinearia-label
(no visual text) and prevent the button collapsing with a styling fix.
Thoughts on above or alternative solutions welcomed?
@kirsty-hames I like the idea of having of a default strapline title ( This is another case where we need a better form library in the AAT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as expected thanks 👍
Hi @swashbuck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🎉 This PR is included in version 7.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Fix #308
Update
_items
titles optional_globals._components._narrative.titleDialog
for strapline dialogs. This will only be used by screenreaders and will not be visually displayed. Defaults toItem {{itemNumber}} of {{totalItems}}
._globals._components._narrative.titleStrapline
for strapline buttons. Defaults to "Find out more"Rework strapline dialog titles to use one of the following properties (sorted by precedence):
_items
title
_items
strapline
_globals._components._narrative.titleDialog
Rework strapline button titles to use one of the following properties (sorted by precedence):
_items
strapline
_items
title
_globals._components._narrative.titleStrapline