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 automatically adds width and/or height values for tr and td #6540

Closed
RobinRoelofsen opened this issue May 2, 2018 · 2 comments
Closed
Labels
[Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.

Comments

@RobinRoelofsen
Copy link

Issue Overview

When I add a table to a page and add columns, tr and td gets values assigned. The only way to get rid of these values is by deleting them from the source code, since there are no options for the block yet.

Sometimes heights are added as well, but cannot reliably replicate that.

I style the tables using CSS, but these values override the CSS values. Also, when I delete the values and keep working on the page, values reappear, so I need to remove them again and again.

Steps to Reproduce (for bugs)

  1. Add a table blok
  2. Insert a column
  3. Check the source code

I am working in the Chrome browser. Gutenberg's version is 2.7.0, WP's is 4.9.5.

Expected Behavior

I expect values to appear only when I either enter values myself or if the block provides a better solution for entering width and height values. Never have the editor add values without user consent.

Current Behavior

Now widths are entered by the editor instead of by the user.

Possible Solution

It would be a nice addition to the tables block to be able to either set widths and heights or turn that off and have it dealt with by CSS.

Screenshots / Video

https://www.useloom.com/share/98053e56bec7414ca805767bd9039718

@danielbachhuber
Copy link
Member

Thanks for the report, @RobinRoelofsen. This issue is already covered with #4027

@danielbachhuber
Copy link
Member

It's also worth noting there's a broader look at <table> in #6923

@designsimply designsimply added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks labels Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants