You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intentional, insofar as this allows the table block to be born with some basic responsive measures. By being block, it can scale to the width of the parent element, and apply a horizontal scrollbar on smaller breakpoints. Additionally it helps enable a fixed table cell width as an option:
Though note there's a regression with that particular aspect, see #7899 (comment)
Note also that theme.scss is an "opinionated visual style", in that it requires you as a themer to opt in to receiving that style. If you make no change in your functions.php to opt into Gutenberg opinionated styles, the theme style will not be loaded for the theme. See #5360.
@earnjam since you recently mad a pull request to address a related issue, can you think of a way to keep the table table yet keep the responsive and optional fixed cell behaviors?
Based on what you wrote I'm going to refrain from commenting in this ticket further (as for me it can be closed) and I'm going to:
Not touch /gutenberg/build/core-blocks/theme.css styles.
Create .wp-block-my-custom-version-of-table class for alternative styling with regular display: table; which I'll be assigning to the tables that I need to have display: table; for.
.wp-block-table
shouldn't havedisplay: block;
in /gutenberg/build/core-blocks/theme.cssOtherwise I would have to write in my style.css
table { display: table; }
.Whatever this is trying to accomplish I think you need to use some other way to do that as this is counter-intuitive.
The text was updated successfully, but these errors were encountered: