Skip to content

Commit

Permalink
Merge pull request #926 from geoadmin/bug-647-attributions
Browse files Browse the repository at this point in the history
PB-647: Fix CSS non link attribution
  • Loading branch information
ltshb authored Jun 18, 2024
2 parents 4ada0d1 + 4bb1d56 commit 870adc0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/modules/map/components/footer/MapFooterAttributionItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? '' : ','}` }}
Expand Down Expand Up @@ -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;
}
}
}
</style>

0 comments on commit 870adc0

Please sign in to comment.