-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen-modal.html
More file actions
28 lines (28 loc) · 957 Bytes
/
open-modal.html
File metadata and controls
28 lines (28 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- <pat-open-modal> -->
<{{ include.tag | default: 'a' }}
tabindex="0"
{% if include.tag == 'button' %}
formaction="{{ include.href }}"
type="submit"
{% else %}
href="{{ include.href }}"
{% endif %}
{% if include.title %}
{%- assign this_title = include.title -%}
title="{%- include patterns/i18n sentinel=false id=this_title -%}"
{% endif %}
class="
pat-inject
{{ include.class }}"
data-pat-inject="
source: #pat-modal-panel-space;
target: #pat-modal-panel-space;
url: {{ include.href }};">
{%- if include.label contains 'label_' -%}
{%- include patterns/i18n
id=include.label -%}
{%- else -%}
{{- include.label -}}
{%- endif -%}
</{{ include.tag | default: 'a' }}>
<!-- </pat-open-modal> -->