Skip to content

Commit

Permalink
Merge pull request #5216 from onepercentclub/bugfix/BB-20400-impact-i…
Browse files Browse the repository at this point in the history
…cons

Fix impact icon selector
  • Loading branch information
gannetson committed Aug 30, 2022
2 parents 51a51e3 + 84d2de9 commit 9a58a29
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,25 @@ span.help + p.help {
padding-left: 0;
}
}

ul.icon-picker {
columns: 4;
width: 300px;
li {
padding: 8px;
input {
display: none;
&:checked + img{
background-color: #64A03C;
border: 2px solid #409020;
}
}
img{
border: 2px solid #dddddd;
width: 50px;
height: 50px;
padding: 8px;
cursor: pointer;
}
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% for group, options, index in widget.optgroups %}
{% for option in options %}
<li>
{% include option.template_name with widget=option %}
{% include option.template_name with wrap_label=True widget=option %}
</li>
{% endfor %}
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
{% if widget.value %}
<img src="/goodicons/impact/{{ widget.value }}-impact.svg" alt="{{ widget.label }}">
{% else %}
<span>
{% trans "Default" %}
</span>
<img src="/goodicons/impact/default-impact.svg" alt="Default">
{% endif %}
</label>
{% endif %}

0 comments on commit 9a58a29

Please sign in to comment.