Skip to content

Commit

Permalink
Updated slac theme 1.0.27
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandoayeras committed Nov 16, 2023
1 parent 6f71f83 commit 59b200f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion slac.info.yml
Expand Up @@ -3,7 +3,7 @@ type: theme
base theme: false
description: 'Storybook-based starter theme'
package: Custom
core_version_requirement: ^8.9 || ^9
core_version_requirement: ^8.9 || ^9 || ^10
libraries:
- slac/global
libraries-override:
Expand Down
4 changes: 2 additions & 2 deletions source/03-components/form-item/_form-item-label.twig
Expand Up @@ -18,13 +18,13 @@

<label {{ add_attributes(attributes_to_add) }}>
{% if is_required %}
{%- spaceless %}
{%- apply spaceless %}
<span class="c-form-item__required-marker">
<span class="u-visually-hidden">
{{ 'This field is required.'|t }}
</span>
</span>
{% endspaceless -%}
{% end apply -%}
{% endif -%}

{{- title }}
Expand Down
4 changes: 2 additions & 2 deletions templates/paragraph/paragraph--image-hero.html.twig
Expand Up @@ -38,11 +38,11 @@
* @ingroup themeable
*/
#}
{% set tooltip %}{% spaceless %}
{% set tooltip %}{% apply spaceless %}
{{- hero_caption -}}
{% if hero_credit|field_value %}<p>{{- hero_credit -}}</p>{% endif %}
{% if hero_url %}<p><a href="{{ hero_url }}">{{ 'Image details'|t }}</a></p>{% endif %}
{% endspaceless %}{% endset %}
{% endapply %}{% endset %}

{% include '@components/hero-bg-image/hero-bg-image.twig' with {
'modifier_classes': attributes.class|join(' ')|trim,
Expand Down

0 comments on commit 59b200f

Please sign in to comment.