Skip to content

Commit 38d1ddb

Browse files
authored
Merge pull request #1502 from gethinode/develop
Develop
2 parents 0b81eba + 1728749 commit 38d1ddb

File tree

8 files changed

+297
-102
lines changed

8 files changed

+297
-102
lines changed

component-library/components/faq/faq.hugo.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
{{ $class := "" }}
2525
{{ $id := printf "faq-%s" (md5 (delimit (slice . now) "-")) }}
2626

27-
<div id="{{ $id }}" class="accordion accordion-faq {{ if $args.contrast }}accordion-faq-contrast text-white {{ end }}accordion-flush mb-3{{ with $class }} {{ . }}{{ end }} col-12 col-md-6 mx-auto">
27+
<div id="{{ $id }}" class="accordion accordion-faq {{ if $args.contrast }}accordion-faq-contrast text-white {{ end -}}
28+
accordion-flush{{ with $class }} {{ . }}{{ end }} col-12 col-md-6 mx-auto">
2829
{{ range $index, $item := $args.items }}
2930
<div class="accordion-item">
3031
{{- with $item.title -}}

component-library/components/video-message/video-message.bookshop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ blueprint:
2424
link-type:
2525
orientation:
2626
icon-rounded:
27+
icon-style:
2728
video:
2829
provider:
2930
account:

component-library/components/video-message/video-message.hugo.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
{{ $cols := .cols }}
6060
{{ $type := .type }}
6161
{{ $iconRounded := .iconRounded }}
62+
{{ $iconStyle := .iconStyle }}
6263

6364
{{- partial "assets/card-group.html" (dict
6465
"page" page
@@ -75,6 +76,7 @@
7576
"button" true
7677
"link-type" $type
7778
"icon-rounded" $iconRounded
79+
"icon-style" $iconStyle
7880
) -}}
7981
{{ end }}
8082

@@ -99,7 +101,7 @@
99101
{{- partial "assets/section-title.html" (dict "heading" $args.heading "justify" $args.justify) -}}
100102

101103
{{ if eq $args.orientation "stacked" }}
102-
<div class="col-{{ $breakpoint.current }}-{{ $args.width }} mx-auto pb-{{ $padding.y }}">
104+
<div class="col-{{ $breakpoint.current }}-{{ $args.width }} mx-auto">
103105
{{ with $args.video }}
104106
{{- partial "inline/video.html" (dict
105107
"provider" .provider
@@ -112,11 +114,17 @@
112114
) -}}
113115
{{ end }}
114116
</div>
115-
<div class="mt-{{ $padding.y }} pb-{{ $padding.y }}">
116-
{{- partial "inline/messages.html" (dict "list" $list "cols" $args.cols "type" $args.type "iconRounded" $args.iconRounded) -}}
117+
<div class="mt-{{ $padding.y }}">
118+
{{- partial "inline/messages.html" (dict
119+
"list" $list
120+
"cols" $args.cols
121+
"type" $args.type
122+
"iconRounded" $args.iconRounded
123+
"iconStyle" $args.iconStyle
124+
) -}}
117125
</div>
118126
{{ else }}
119-
<div class="container grid gap-4 pb-{{ $padding.y }}">
127+
<div class="container grid gap-{{ $padding.x }}">
120128
<div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2">
121129
<div class="col col-{{ $breakpoint.current }}-{{ $args.width }} p-0">
122130
{{ with $args.video }}
@@ -132,7 +140,13 @@
132140
{{ end }}
133141
</div>
134142
<div class="col col-{{ $breakpoint.current }}-{{ sub 12 $args.width }} mt-{{ $padding.y }} mt-{{ $breakpoint.current }}-0">
135-
{{- partial "inline/messages.html" (dict "list" $list "cols" 1 "type" $args.type "iconRounded" $args.iconRounded) -}}
143+
{{- partial "inline/messages.html" (dict
144+
"list" $list
145+
"cols" 1
146+
"type" $args.type
147+
"iconRounded" $args.iconRounded
148+
"iconStyle" $args.iconStyle
149+
) -}}
136150
</div>
137151
</div>
138152
</div>

exampleSite/content/en/blocks/video-message.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The `video` content block renders a horizontal line to separate sections. The se
2424
color: primary
2525
subtle: true
2626
orientation: horizontal
27+
icon-style: fa-lg
2728
video:
2829
provider: vimeo
2930
media-id: "55073825"

0 commit comments

Comments
 (0)