liqd / a4-meinberlin

The central participation platform of the city of Berlin, Germany
https://mein.berlin.de
GNU Affero General Public License v3.0
40 stars 6 forks source link

contrib/templates: reset padding for checkboxes in special forms #5739

Closed hom3mad3 closed 1 week ago

hom3mad3 commented 1 week ago

This PR addresses an issue with padding for checkboxes using the predefined BerlinOnline classes. Instead of globally resetting the BO styles, I am introducing a utility class to selectively remove padding for the special forms that require it.

login and account pages forms unboundforms

grey forms (panel--heavy)

Screenshot 2024-11-11 at 14 56 39

Tasks

vellip commented 1 week ago

@hom3mad3 Can't we do (pseudo-code)...

.panel--heavy .form-check {
    padding: $some-padding;
}

or

:not(.panel--heavy) .form-check {
    padding: 0;
}

Or am I missing something?

hom3mad3 commented 1 week ago

@vellip i'm probably so afraid of globally resetting stuff at this point 😂 but i prefer your solution 👍🏼

hom3mad3 commented 1 week ago

@vellip thanks! removed the BS