mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
Add styles for nested lists of radios
Assumes lists that are descendants of a radio control should be indented at the same amount as their label text.
This commit is contained in:
@@ -251,6 +251,11 @@ details .arrow {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.multiple-choice > .panel {
|
||||
border-left: none;
|
||||
padding: 0 0 0 12px;
|
||||
}
|
||||
|
||||
.heading-inline {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
@@ -19,9 +19,10 @@
|
||||
options,
|
||||
child_map,
|
||||
disable=[],
|
||||
option_hints={}
|
||||
option_hints={},
|
||||
top_level=False
|
||||
) %}
|
||||
<ul>
|
||||
<ul{% if not top_level %} class="panel panel-border-narrow"{% endif %}>
|
||||
{% for option in options %}
|
||||
{% if child_map[option.data] %}
|
||||
{% call radio(option, disable, option_hints, as_list_item=True) %}
|
||||
@@ -46,7 +47,7 @@
|
||||
{% call radios_wrapper(
|
||||
field, hint, disable, option_hints, hide_legend
|
||||
) %}
|
||||
{{ radio_list(child_map[None], child_map, disable, option_hints) }}
|
||||
{{ radio_list(child_map[None], child_map, disable, option_hints, top_level=True) }}
|
||||
{% endcall %}
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user