File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/components/bolt-share/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
{% set base_class = " c-bolt-share" %}
11
11
{% set attributes = create_attribute(attributes | default ({})) %}
12
12
{% set inner_attributes = create_attribute({}) %}
13
- {% set inline = inline == false and inline is not null ? false : true %}
13
+ {% set inline = inline is sameas( true ) or inline is sameas( false ) ? inline : schema . inline . default %}
14
14
15
15
{# Default text can't be pulled from the schema because it must be translatable. #}
16
16
{% set text = text | default(" Share this page" | t) %}
89
89
90
90
{# Share component's custom element wrapper. #}
91
91
<bolt -share
92
- {% if inline == true %} inline {% endif %}
92
+ {% if inline %} inline {% endif %}
93
93
{{ attributes }}
94
94
>
95
95
{# Array of classes based on the defined + default props. #}
96
96
{% set classes = [
97
97
base_class ,
98
- inline == true ? " #{base_class}--display-inline" : " #{base_class}--display-button" ,
98
+ inline ? " #{base_class}--display-inline" : " #{base_class}--display-button" ,
99
99
] %}
100
100
101
101
<div {{ inner_attributes.addClass (classes ) }}>
You can’t perform that action at this time.
0 commit comments