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

[#342] Twig comment changes required for generating components. #343

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions components/02-molecules/logo/logo.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
- inline-stacked: Display both primary and secondary logos inline horizontally.
On mobile, this will automatically converts to 'stacked'.
* - logos: [object] Object with 'primary' and 'secondary' keys:
* - breakpoint: [object] Object with 'mobile' and 'desktop' keys:
* - url: [string] URL for the logo.
* - alt: [string] Image alt text.
* - breakpoint: [object] Object with 'mobile' and 'desktop' keys:
* - url: [string] URL for the logo.
* - alt: [string] Image alt text.
* - url: [string] Optional URL that wraps the logo.
* - title: [string] Optional logo title attribute.
* - attributes: [string] Additional attributes.
Expand Down
2 changes: 1 addition & 1 deletion components/02-molecules/tabs/tabs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* - title: [string] Panel title.
* - content: [string] Panel content.
* - id: [string] Panel id.
* - is_selected: [bolean] Panel is selected or not
* - is_selected: [boolean] Panel is selected or not
* - links: [array] Optional array of links (if not provided - will be generated
from panel):
* - text: [string] Link text.
Expand Down
6 changes: 6 additions & 0 deletions components/02-molecules/video-player/video-player.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
* - width: [string] Width of the iframe.
* - height: [string] Height of the video.
* - transcript_link: [object] Video transcript link.
* - text: [string] Button text.
* - title: [string] Button title.
* - url: [string] URL for the link button.
* - is_new_window: [boolean] Open in a new window or not.
* - is_external: [boolean] If link is external or not.
* - attributes: [string] Additional attributes.
* - oembed: [string] oEmbed provided iframe container.
* - attributes: [string] Additional attributes.
* - modifier_class: [string] Additional classes.
Expand Down
4 changes: 2 additions & 2 deletions components/03-organisms/navigation/navigation.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* - title: [string] Navigation title.
* - type: [string] One of: none, inline, dropdown, drawer.
* - dropdown_columns: [integer] Number of columns in the dropdown drawer.
* - dropdown_columns_fill: [bollean] Fill columns.
* - is_animated: [bollean] Use animation for transitions.
* - dropdown_columns_fill: [boolean] Fill columns.
* - is_animated: [boolean] Use animation for transitions.
* - menu_id: [string] Optional menu ID used for grouping dropdown items.
* - attributes: [string] Additional attributes.
* - modifier_class: [string] Additional classes.
Expand Down
2 changes: 1 addition & 1 deletion components/03-organisms/webform/webform.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Webform component.
*
* Variables:
* - referenced_webform: [webform] Rendered webform.
* - referenced_webform: [string] Rendered webform.
* - theme: [string] Theme: light, dark.
* - vertical_spacing: [string] With top, bottom or both vertical spaces.
* - with_background: [boolean] With background or not.
Expand Down