From 4bb1d564f7e06d5e2cb1c8325c9cb6b08eb03caa Mon Sep 17 00:00:00 2001 From: Brice Schaffner Date: Mon, 17 Jun 2024 14:08:20 +0200 Subject: [PATCH] PB-647: Fix CSS non link attribution Some attribution are not link and cannot be clicked. In this case they should be selectable. Previously all attributions were not selectable and they all had the pointer cursor. --- .../components/footer/MapFooterAttributionItem.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/modules/map/components/footer/MapFooterAttributionItem.vue b/src/modules/map/components/footer/MapFooterAttributionItem.vue index 7b31cd3aa..70cf4f9e6 100644 --- a/src/modules/map/components/footer/MapFooterAttributionItem.vue +++ b/src/modules/map/components/footer/MapFooterAttributionItem.vue @@ -4,8 +4,8 @@ :id="`source-${sourceId}`" :href="sourceUrl" :target="sourceUrl ? '_blank' : null" - class="map-footer-attribution-source" - :class="{ 'text-primary': hasDataDisclaimer }" + class="map-footer-attribution-source clear-no-ios-long-press" + :class="{ 'text-primary': hasDataDisclaimer, 'is-link': sourceUrl || hasDataDisclaimer }" :data-cy="`layer-copyright-${sourceName}`" > {{ `${sourceName}${isLast ? '' : ','}` }} @@ -45,11 +45,13 @@ export default { .map-footer-attribution-source { margin-left: 2px; color: $black; - text-decoration: none; - &:hover { - text-decoration: underline; - cursor: pointer; + &.is-link { + text-decoration: none; + &:hover { + text-decoration: underline; + cursor: pointer; + } } }