From 4f5d37b676e3927a91c06775acb25cf6bd0f09a5 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 28 Feb 2025 14:05:26 -0500 Subject: [PATCH 1/2] a11y: switch to better contrasted links And underline for external links otherwise the new green color is too close to the text one to clearly identify links. --- umap/static/umap/base.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index f3ff8f4e..b33cdf34 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -19,7 +19,10 @@ h1, h2, h3, h4, h5, h6, label, hr { } a { text-decoration: none; - color: SeaGreen; + color: #1F5C39; +} +a[href^="http"] { + text-decoration: underline; } button { cursor: pointer; From ea58f9394015c3e9055b413418cd7c2ef2f8362a Mon Sep 17 00:00:00 2001 From: David Larlet Date: Fri, 28 Feb 2025 14:11:27 -0500 Subject: [PATCH 2/2] a11y: update URLs and (underlined) styles for help --- umap/settings/base.py | 2 +- umap/static/umap/base.css | 2 +- umap/static/umap/nav.css | 4 ++++ umap/templates/umap/content_footer.html | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/umap/settings/base.py b/umap/settings/base.py index 459d0952..5d6c5930 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -274,7 +274,7 @@ UMAP_MAPS_PER_PAGE = 5 UMAP_MAPS_PER_SEARCH = 25 UMAP_MAPS_PER_PAGE_OWNER = 10 UMAP_SEARCH_CONFIGURATION = "simple" -UMAP_HELP_URL = "https://wiki.openstreetmap.org/wiki/UMap#Feedback_and_help" +UMAP_HELP_URL = "https://discover.umap-project.org/" USER_MAPS_URL = "user_maps" DATABASES = { "default": env.db( diff --git a/umap/static/umap/base.css b/umap/static/umap/base.css index b33cdf34..6651df52 100644 --- a/umap/static/umap/base.css +++ b/umap/static/umap/base.css @@ -21,7 +21,7 @@ a { text-decoration: none; color: #1F5C39; } -a[href^="http"] { +a[href^="http"]:not(nav.umap-nav a) { text-decoration: underline; } button { diff --git a/umap/static/umap/nav.css b/umap/static/umap/nav.css index 5f41f1ac..27f96557 100644 --- a/umap/static/umap/nav.css +++ b/umap/static/umap/nav.css @@ -27,6 +27,10 @@ footer a.branding { font-weight: bold; padding-inline-start: 70px; display: inline-block; + text-decoration: none; +} +footer a.branding:hover { + text-decoration: underline; } html[dir="rtl"] footer a.branding { background-position: right center; diff --git a/umap/templates/umap/content_footer.html b/umap/templates/umap/content_footer.html index f368e471..dc181761 100644 --- a/umap/templates/umap/content_footer.html +++ b/umap/templates/umap/content_footer.html @@ -1,7 +1,7 @@ {% load i18n %}