Skip to content

Post Comments Form Block: Block should ship with default styles #26865

Closed

Description

@kjellr

The post comments form block currently renders completely unstyled:

Screen Shot 2020-11-10 at 1 40 57 PM

This should ship with a set of default styles so it can be used out of the box in block-based themes.

Activity

  1. added
    [Type] Enhancement
    Needs Design
    [Block] Comments Form
    on Nov 10, 2020
  2. added
    [Feature] Themes
    CSS Styling
    on Nov 11, 2020
  3. self-assigned this
    on Nov 11, 2020
  4. kjellr commented on Nov 12, 2020

    @kjellr
    ContributorAuthor

    One wishlist item for this: The button block should inherit the standard wp-block-button styles.

    Ideally, it would be an actual nested (variation of a) button block, so that users could modify its appearance.

  5. karmatosed commented on Nov 16, 2020

    @karmatosed
    Member

    @kjellr I took a little time in mocking this up and will spin up a PR to get iterations going as hopefully most can be done in CSS (yet to confirm that).

    Suggestion

    I went really simple using the grid variables for spacing and default scale for typography. This should also allow easier customization of this in the future.

    simpl1

    Relating to customizing, here is what coloring that slightly could for example lead to, this could just be done using variable changes:

    simpl2

    I did noticed that the placeholder for the post comments form is also a little sparce, so opened an issue #26999.

    Feedback

    I'm looking for any feedback, but specifically is this giving the flexibility needed along with tidying up?

  6. added
    Needs Design Feedback
    and removed
    Needs Design
    on Nov 16, 2020
  7. kjellr commented on Nov 16, 2020

    @kjellr
    ContributorAuthor

    This seems like a good start, thanks @karmatosed!

  8. removed
    Needs Design Feedback
    on Nov 16, 2020
  9. linked a pull request that will close this issueAdds in basic styling for post comment form #35704on Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CSS Styling[Block] Comments Form[Feature] Themes[Type] Enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions