Verified Commit 29de0ae6 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3414981 by finnsky, pdureau: Umami Demo: review of the already merged SDC components

(cherry picked from commit 4a2b996b)
parent 06089464
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -27,10 +27,10 @@ props:
        - timer
        - serves
        - difficulty
slots:
  label:
    type: string
    description: Label text
slots:
  text:
    type: string
    description: Text
+2 −2
Original line number Diff line number Diff line
@@ -5,8 +5,8 @@
        {{ source(componentMetadata.path ~ '/icons/' ~ icon|default('knife') ~ '.svg') }}
      </div>
    {% endif %}
    {% if label %}
      <div class="umami-badge__label">{{~ label ~}}</div>
    {% if block('label') is defined and block('label')|trim %}
      <div class="umami-badge__label">{% block label %}{% endblock %}</div>
    {% endif %}
    {% block text %}{% endblock %}
  </div>
+14 −3
Original line number Diff line number Diff line
@@ -18,8 +18,19 @@ props:
  type: object

  properties:
    attributes:
      type: Drupal\Core\Template\Attribute
      title: Attributes
      description: Wrapper attributes.
    site_logo:
      type: string
      format: iri-reference
    url:
      type: string
      title: Branding url
      format: iri-reference

slots:
  site_name:
    type: string
  site_slogan:
+9 −4
Original line number Diff line number Diff line
<div class="branding">
<div{{ attributes.addClass('branding') }}>
  {% if site_logo %}
    <a href="{{ path('<front>') }}" rel="home" class="branding__site-logo">
    <a href="{{ url }}" rel="home" class="branding__site-logo">
      <img src="{{ site_logo }}" alt="{{ 'Home'|t }}" />
    </a>
  {% endif %}

  {% if site_name %}
    <div class="branding__site-name">
      <a href="{{ path('<front>') }}" rel="home">{{ site_name }}</a>
      <a href="{{ url }}" rel="home">
        {% block site_name %}{% endblock %}
      </a>
    </div>
  {% endif %}
  {% if site_slogan %}
    <div class="branding__site-slogan">{{ site_slogan }}</div>
    <div class="branding__site-slogan">
      {% block site_slogan %}{% endblock %}
    </div>
  {% endif %}
</div>
+14 −8
Original line number Diff line number Diff line
@@ -15,6 +15,12 @@ props:
  type: object

  properties:
    attributes:
      type: Drupal\Core\Template\Attribute
      title: Attributes
      description: Wrapper attributes.

slots:
  disclaimer:
    type: string
    description: Disclaimer text
Loading