Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field items vs. unpublished paragraph items #158

Open
olafgrabienski opened this issue Aug 8, 2023 · 0 comments
Open

Field items vs. unpublished paragraph items #158

olafgrabienski opened this issue Aug 8, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@olafgrabienski
Copy link
Member

When a paragraph item is unpublished, the surrounding field item is empty but still rendered. This leads to styling issues with unpublished paragraph items on one of my sites, because field items are styled to have padding and a background color. With the following example, a paragraph takes some space, even if unpublished:

.field-name-field-paragraph > .field-items > .field-item {
    padding: 3rem 2rem 2rem;
}
.field-name-field-paragraph > .field-items > .even {
    background: #fff;
}

I guess, instead of the field-item, I could style the paragraphs-item inside of the field item. I'm however curious if it's possible to add a unpublished class to field items, to allow more flexibility.

@olafgrabienski olafgrabienski added enhancement New feature or request question Further information is requested labels Aug 8, 2023
@olafgrabienski olafgrabienski changed the title Field item vs. unpublished paragraph items Field items vs. unpublished paragraph items Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant