diff --git a/css/block/slider.css b/css/block/slider.css index 6e1eb77f..3a8ef5a4 100644 --- a/css/block/slider.css +++ b/css/block/slider.css @@ -138,6 +138,17 @@ max-width: calc(100% - 100px); } +.ucb-slider-block .slide-text-container .slide-text a:link, +.ucb-slider-block .slide-text-container .slide-text a:visited { + color: var(--ucb-gold); +} + +.ucb-slider-block .slide-text-container .slide-text a:hover, +.ucb-slider-block .slide-text-container .slide-text a:active, +.ucb-slider-block .slide-text-container .slide-text a:focus { + color: #FFF; +} + .ucb-slider-block .carousel-inner a:hover { cursor: pointer; } diff --git a/templates/paragraphs/paragraph--slider-image.html.twig b/templates/paragraphs/paragraph--slider-image.html.twig index 920c3011..d240edde 100644 --- a/templates/paragraphs/paragraph--slider-image.html.twig +++ b/templates/paragraphs/paragraph--slider-image.html.twig @@ -1,17 +1,14 @@ {# /** - * @file - * Theme to format images that appear within the Image Slider Paragraph - * + * @file Contains the template to render a Slider Image paragraph. + */ #} -{% - set classes = [ - 'paragraph', - 'paragraph--type--' ~ paragraph.bundle|clean_class, - view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, - not paragraph.isPublished() ? 'paragraph--unpublished' - ] -%} +{% set classes = [ + 'paragraph', + 'paragraph--type--' ~ paragraph.bundle|clean_class, + view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, + not paragraph.isPublished() ? 'paragraph--unpublished' +] %} {# set paragraph's parent for field information #} {% set parent = paragraph._referringItem.parent.parent.entity %} @@ -31,37 +28,39 @@ {% set imgUrl = paragraph.field_slide_image.entity.field_media_image.entity.fileuri|image_style(imgStyle) %} {% set imgAlt = paragraph.field_slide_image.entity.field_media_image.alt %} - {% block paragraph %} {% block content %}
+ {% if paragraph.field_slide_title.value is not empty or paragraph.field_slide_image_text is not empty %} + + {% endif %} + {% endblock %} +{% endblock %} - {% if paragraph.field_slide_title.value is not empty or paragraph.field_slide_image_text is not empty %} -