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

Table block: default CSS does not match the generated markup #2656

Closed
2 tasks
gonzomir opened this issue Sep 4, 2017 · 1 comment
Closed
2 tasks

Table block: default CSS does not match the generated markup #2656

gonzomir opened this issue Sep 4, 2017 · 1 comment

Comments

@gonzomir
Copy link
Contributor

gonzomir commented Sep 4, 2017

Issue Overview

The default styles of the table block don't match the generated markup.

Steps to Reproduce (for bugs)

  1. Create table block in the editor
  2. Look at the markup in the front-end

Expected Behavior

The CSS selectors should match the generated markup.

Current Behavior

Currently the CSS expects the table to be wrapped in a div with wp-block-table class, while the saved markup is a table with the class. This also causes the table in the front-end to have display: block; applied to it.

Possible Solution

Apply the current set of styles only to the editor and eventually add another default styles for the block for the front-end.

Related Issues and/or PRs

#2620

Todos

  • Tests
  • Documentation
@mtias
Copy link
Member

mtias commented Nov 20, 2017

Closing in favor of #2620.

@mtias mtias closed this as completed Nov 20, 2017
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

No branches or pull requests

2 participants