From a4017b2bf2e02aa4e5a0506b78c2b55795d7a20c Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Mon, 18 Nov 2024 09:20:26 -0800 Subject: [PATCH] ui: Restyle tags, remove underlining of text - Tags have important text that is too small and could cause problems with users with limited vision. Make them regular buttons. Make the buttons shorter and rounder to resemble previous styling. - Drop underlining of text in the process. - In code, don't call them 'badges' anymore. Tests: - Run functional tests for tags. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/templates/app-header.html | 2 +- plinth/templates/apps.html | 2 +- plinth/tests/tags/test_functional.py | 2 +- static/tags.js | 10 +++++----- static/themes/default/css/main.css | 20 +++++++++++++------- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/plinth/templates/app-header.html b/plinth/templates/app-header.html index 3a9362eac..0c6e60c5c 100644 --- a/plinth/templates/app-header.html +++ b/plinth/templates/app-header.html @@ -55,7 +55,7 @@
{% for tag in app_info.tags %} + class="btn btn-light rounded-pill tag"> {% trans tag %} {% endfor %} diff --git a/plinth/templates/apps.html b/plinth/templates/apps.html index d9efd8b17..8fdbb759f 100644 --- a/plinth/templates/apps.html +++ b/plinth/templates/apps.html @@ -15,7 +15,7 @@
{% for tag in tags %} - {% trans tag %}