mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-21 08:29:27 -04:00
Center-align pill text when there’s no big number
When the text is left aligned it looks messy because the spacing is so uneven and there are no big numbers to give it some rhythm.
This commit is contained in:
@@ -58,6 +58,11 @@
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&-centered-item {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.pill-separate {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
{% for label, option, link, count in items %}
|
||||
{% if current_value == option %}
|
||||
<li aria-selected='true' role='tab'>
|
||||
<div class='pill-selected-item' tabindex='0'>
|
||||
<div class='pill-selected-item{% if not show_count %} pill-centered-item{% endif %}' tabindex='0'>
|
||||
{% else %}
|
||||
<li aria-selected='false' role='tab'>
|
||||
<a href="{{ link }}">
|
||||
@@ -18,7 +18,7 @@
|
||||
{% if show_count %}
|
||||
{{ big_number(count, **big_number_args) }}
|
||||
{% endif %}
|
||||
<div class="pill-label">{{ label }}</div>
|
||||
<div class="pill-label{% if not show_count %} pill-centered-item{% endif %}">{{ label }}</div>
|
||||
{% if current_value == option %}
|
||||
</div>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user