-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the action suffix to be set manually
As the summary list can either be have its card automatically rendered around it with `govuk_summary_list(card: { title: "A card" })` or be manually rendered inside a card with `govuk_summary_card(...) { govuk_summary_list(...) }` it makes sense to support both approaches when setting the contextual visually hidden text that follows the action text. This change adds support for the latter by allowing action suffixes to be passed in. If both the card and action_suffix are provided the action_suffix will take precedence, giving designers a little more flexibility with the assistive text should they need it. There might be some situations where the card title doesn't make sense, or it should be lowercased when used in the link, etc.
- Loading branch information
1 parent
026229b
commit f4e93fb
Showing
4 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters