Skip to content

Commit

Permalink
OEL-461: Theme cfacet clear link into button, fix heading padding.
Browse files Browse the repository at this point in the history
  • Loading branch information
GilNovacomm authored and drishu committed Sep 16, 2021
1 parent 48af6f8 commit 3ec6008
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion templates/overrides/search/block--facets-form.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@
*/
#}

{% if content.actions.reset['#type'] == 'link' %}
{% set extra_attributes = create_attribute() %}
{% set reset = pattern('button', {
'label': content.actions['reset']['#title'],
'url': content.actions['reset']['#url'].toString(),
'style': 'secondary',
'attributes': extra_attributes.addClass('ms-2')
})
%}
{% set actions = content.actions %}
{% set actions = actions|merge({('reset'): reset}) %}
{% set content = content|merge({('actions'): actions}) %}
{% endif %}
{% block content %}
{{ pattern('offcanvas', {
'title': {
Expand All @@ -43,7 +56,7 @@
'placement': 'start',
'with_body_scroll': false,
'with_backdrop': true,
'extra_classes_body': 'bcl-offcanvas',
'extra_classes_body': 'bcl-offcanvas p-lg-0',
'extra_classes_close': "d-lg-none",
'extra_classes_header': "p-lg-0",
'with_trigger': true,
Expand Down

0 comments on commit 3ec6008

Please sign in to comment.