Skip to content
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

Make accordion component documentation more accurate #1495

Merged
merged 2 commits into from
Jul 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/govuk/components/accordion/accordion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ params:
params:
- name: heading.text
type: string
required: false
required: true
description: The title of each section. If `heading.html` is supplied, this is ignored. This is used both as the title for each section, and as the button to open or close each section.
- name: heading.html
type: string
required: false
required: true
description: The HTML content of the header for each section which is used both as the title for each section, and as the button to open or close each section.
- name: summary.text
type: string
Expand All @@ -36,6 +36,10 @@ params:
type: string
required: false
description: HTML content for summary line.
- name: content.text
type: string
required: true
description: The text content of each section, which is hidden when the section is closed. If `content.html` is supplied, this is ignored.
- name: content.html
type: string
required: true
Expand Down