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

Blank Canvas Blocks: Add table styles #3503

Merged
merged 3 commits into from
Mar 23, 2021
Merged

Conversation

scruffian
Copy link
Member

@scruffian scruffian commented Mar 22, 2021

Changes proposed in this Pull Request:

This adds CSS to match the frontend to the editor for tables

Related issue(s):

#3413

Editor:
Screenshot 2021-03-22 at 15 39 56

Frontend:
Screenshot 2021-03-22 at 15 40 02

@scruffian scruffian added this to the Blank Canvas Blocks milestone Mar 22, 2021
@scruffian scruffian requested a review from a team March 22, 2021 15:40
@scruffian scruffian self-assigned this Mar 22, 2021
@scruffian scruffian changed the base branch from trunk to make/blank-canvas-blocks March 22, 2021 15:41
},
"table": {
"typography": {
"fontSize": "var(--wp--preset--font-size--tiny)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this declaration live directly under "styles" -> "core/table" now that we've decoupled block supports and theme.json for supported style attributes?

Copy link
Member Author

Choose a reason for hiding this comment

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

No I don't think so because in this case it is being mapped to the caption, not the table itself. Maybe the format of the theme.json should better represent that?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, images and such keep that in a sub-object. Makes sense to do that here as well I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good call. Done in 6b8b6dd

Copy link
Contributor

@jffng jffng left a comment

Choose a reason for hiding this comment

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

LGTM

@jffng jffng merged commit 811574d into make/blank-canvas-blocks Mar 23, 2021
@jffng jffng deleted the add/table-styles branch March 23, 2021 13:00
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.

3 participants