From fa6a1d85175c57e91207da5b7b4865c8cd41fb7c Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Thu, 2 Aug 2018 13:54:08 +0200
Subject: [PATCH] Fix number display fallback.

---
 django_starfield/static/django_starfield.css           | 5 +++++
 django_starfield/templates/django_starfield/stars.html | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/django_starfield/static/django_starfield.css b/django_starfield/static/django_starfield.css
index 95171d4..3800cb1 100644
--- a/django_starfield/static/django_starfield.css
+++ b/django_starfield/static/django_starfield.css
@@ -53,6 +53,11 @@
     font-size: 18px;
     cursor: pointer;
 }
+
+.django-starfield label span
+{
+    display: none;
+}
  
 .django-starfield input:checked ~ label
 {
diff --git a/django_starfield/templates/django_starfield/stars.html b/django_starfield/templates/django_starfield/stars.html
index d68168d..2399377 100644
--- a/django_starfield/templates/django_starfield/stars.html
+++ b/django_starfield/templates/django_starfield/stars.html
@@ -3,12 +3,12 @@
  {% for i in stars %}<!--
  --><input type="radio" name="{{ widget.name }}" id="{{ widget.name }}-{{ forloop.counter0 }}"
            value="{{ i }}" {% if widget.value == i %}checked="checked"{% endif %} /><!--
-     --><label for="{{ widget.name }}-{{ forloop.counter0 }}">{{ i }}</label><!--
+     --><label for="{{ widget.name }}-{{ forloop.counter0 }}"><span>{{ i }}</span></label><!--
  -->{% endfor %}
 </div>
 <link rel="stylesheet" href="{% static 'django_starfield.css' %}" />
 <style type="text/css">
- #django-starfield-{{ widget.name }} label {
+ #django-starfield-{{ widget.name }} label:before {
   content: '\{{ codepoint }}';
  }
 </style>
-- 
GitLab