mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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 <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
1 parent
a094f2a357
commit
a4017b2bf2
5 files changed
+21
-15
No files matched your search
@@ -55,7 +55,7 @@
|
||||
<div>
|
||||
{% for tag in app_info.tags %}
|
||||
<a href="{% url 'apps' %}?tag={{ tag|urlencode }}"
|
||||
class="badge rounded-pill text-bg-light">
|
||||
class="btn btn-light rounded-pill tag">
|
||||
{% trans tag %}
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<div class="tag-input">
|
||||
<div id="selected-tags">
|
||||
{% for tag in tags %}
|
||||
<span class="badge rounded-pill text-bg-light tag-badge"
|
||||
<span class="btn btn-light rounded-pill tag"
|
||||
data-tag="{{ tag }}">
|
||||
{% trans tag %}
|
||||
<button class="btn btn-sm btn-light remove-tag">
|
||||
|
||||
@@ -76,7 +76,7 @@ def test_click_on_tag(session_browser, bittorrent_tag):
|
||||
def test_tag_localization(session_browser, locale):
|
||||
"""Test that tags are localized and tests in done localized."""
|
||||
functional.visit(session_browser, '/plinth/apps/?tag=Sharing')
|
||||
badge = session_browser.find_by_css('.tag-badge[data-tag="Sharing"]').first
|
||||
badge = session_browser.find_by_css('.tag[data-tag="Sharing"]').first
|
||||
assert 'Compartir' in badge.text
|
||||
|
||||
search_input = session_browser.find_by_id('add-tag-input').first
|
||||
|
||||
Reference in new issue
Block a user