Automattic / dops-components

Shared Calypso-style components for non-Calypso projects.
GNU General Public License v2.0
9 stars 6 forks source link

Add a class .dops-form-toggle to span wrapping all FormToggle contents #77

Closed eliorivero closed 7 years ago

eliorivero commented 7 years ago

This will add a class to the FormToggle wrapper that will allow to target a fieldset that is placed after it. For example:

.dops-form-toggle {
    & + .jp-form-fieldset,
    & + .jp-form-setting-explanation {
        margin-left: rem( 34px );
    }
}
MichaelArestad commented 7 years ago

Can we just have a uniform wrapper around the child settings that has the margin?

eliorivero commented 7 years ago

Closing and working on an alternative approach.