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

Block canvas: remove unneeded CSS #6752

Closed
wants to merge 6 commits into from
Closed

Conversation

jffng
Copy link
Contributor

@jffng jffng commented Nov 29, 2022

Changes proposed in this Pull Request:

This PR removes some CSS that has since been added to Gutenberg (PR 45069)

Related issue(s):

@jffng jffng requested a review from a team November 29, 2022 17:16
Comment on lines -69 to -70
font-size: var(--wp--preset--font-size--small);
text-align: center;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like these lines are still needed, but I recently opened a GB PR to address this: WordPress/gutenberg#46172 (I meant to look at this a while ago and this reminded me!)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following up — can we proceed with removing these or do you think some of the styles above are still needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it depends on how opinionated Block Canvas should be. I quite like the default styles of this caption being a smaller font size and centered, but perhaps we should remove these styles so we're relying on the defaults Core provides?

We could also use the caption element in theme.json to at least apply the small font size, rather than using CSS here.

Comment on lines -56 to -60
.wp-block-table thead {
border-bottom: 3px solid;
}
.wp-block-table tfoot {
border-top: 3px solid;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are still needed too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove these lines now as Core includes them in the default styles: WordPress/gutenberg#46567.

We should probably wait for GB 14.9 to be released before merging this.

@jffng jffng closed this Jan 25, 2023
@scruffian scruffian deleted the update/block-canvas-css branch January 25, 2023 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants