File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
templates/components/styles Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2
2
{% if (notes | length > 0 ) %}
3
3
<div class =" l-box note note--{{ type }}" role =" {{ type == ' error' ? ' alert' : ' status' }}" aria-labelledby =" {{ type }}-summary-title" tabindex =" -1"
4
4
data-component =" {{ type }}-summary" data-anchor =" no" >
5
- <h2 id =" {{ type }}-summary-title" class =" txt-saturn" >{{ title }}</h2 >
5
+ {% if title != ' ' %}
6
+ <h2 id =" {{ type }}-summary-title" class =" txt-saturn" >{{ title }}</h2 >
7
+ {% endif %}
6
8
<ul class =" clean-list" role =" list" >
7
9
{% for note in notes %}
8
10
<li >
33
35
{% endmacro %}
34
36
35
37
{% macro warnings(messages , title = null ) %}
36
- {% if title == null %}
38
+ {% if title is same as null %}
37
39
{% set title = ' notes.warnings.default_title' | trans({}, ' w3c_website_templates_bundle' ) %}
38
40
{% endif %}
39
41
{{ _self.notes (' warning' , title , messages ) }}
You can’t perform that action at this time.
0 commit comments