From 2e9c24b5112d747344b86b4fe27b993a2d5fac6f Mon Sep 17 00:00:00 2001 From: Jiro Ghianni Date: Tue, 27 Aug 2024 12:34:12 +0200 Subject: [PATCH] [#2685] styling --- .../components/Form/ChoiceListItem.html | 37 ++++++++++++++----- .../scss/components/Form/ChoiceList.scss | 17 +++++++++ 2 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/open_inwoner/components/templates/components/Form/ChoiceListItem.html b/src/open_inwoner/components/templates/components/Form/ChoiceListItem.html index 3f8667e409..c59f28518c 100644 --- a/src/open_inwoner/components/templates/components/Form/ChoiceListItem.html +++ b/src/open_inwoner/components/templates/components/Form/ChoiceListItem.html @@ -2,15 +2,32 @@ {# Item component for changing the parent styles, when child is clicked #} -
  • -
  • + {% if input_type_radio %} + + + {% else %} +
    +
    +
    + + +
    +
    - {% if icon_symbol %} - {% icon icon_symbol outlined=True extra_classes="icon--large" %} - {% endif %} - + {% endif %}
  • diff --git a/src/open_inwoner/scss/components/Form/ChoiceList.scss b/src/open_inwoner/scss/components/Form/ChoiceList.scss index 8f8a3950a9..4fea83b490 100644 --- a/src/open_inwoner/scss/components/Form/ChoiceList.scss +++ b/src/open_inwoner/scss/components/Form/ChoiceList.scss @@ -230,6 +230,23 @@ left: auto; right: var(--spacing-medium); } + + // Rare case: if icons would be added to checkbox list + .checkbox__label { + &:has(.icon--large) { + display: flex; + flex-direction: column; + + .checkbox .checkbox__label:before { + position: static; + transform: initial; + } + } + [class*='icons'].icon--large { + position: initial; + transform: initial; + } + } } &-multiple__item input[type='checkbox'] {