diff --git a/components/card--rollover/card--rollover.component.yml b/components/card--rollover/card--rollover.component.yml index bc57933..9f762ae 100644 --- a/components/card--rollover/card--rollover.component.yml +++ b/components/card--rollover/card--rollover.component.yml @@ -5,8 +5,6 @@ group: UBC Web Services description: Component to render as a Rollover Card props: type: object - required: - - title properties: title: type: string diff --git a/components/card--rollover/card--rollover.twig b/components/card--rollover/card--rollover.twig index 5c4ea4f..2fa5603 100644 --- a/components/card--rollover/card--rollover.twig +++ b/components/card--rollover/card--rollover.twig @@ -14,12 +14,14 @@ {% block media %}{% endblock %} + {% if title|length > 1 %}

{{ title }}

+ {% endif %} {{ revealedText }}