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

Issue #3039170 by Kingdutch: Add styling for tables in content #1249

Merged
merged 2 commits into from Mar 27, 2019

Conversation

Kingdutch
Copy link
Member

@Kingdutch Kingdutch commented Mar 11, 2019

Problem

Tables in content (e.g. topic bodies) aren't styled by default which makes them difficult to read.

Solution

Adding a class to user content isn't simple so extending the selector from .table (elements with the class table) to also include .page-node .body-text table (table elements in elements with the body-text class of node pages) ensures that they're properly styled when using socialbase as a theme.

Issue tracker

https://www.drupal.org/project/social/issues/3039170

How to test

  • Add a table to a topic and see that it is styled.

Change record

https://www.drupal.org/node/3043143

Release notes

Tables in content (topic, events, etc.) bodies are now styled by default when using (a subtheme of) the socialbase theme. This improves readability for content that includes tables.

Screenshot 2019-03-12 at 11 13 27

@Kingdutch Kingdutch added type: feature Adds a new feature to Open Social status: needs review This pull request is waiting for a requested review labels Mar 11, 2019
@Kingdutch Kingdutch added this to the 5.0 milestone Mar 11, 2019
@Kingdutch Kingdutch force-pushed the feature/3039170-body-text-table-styling branch 4 times, most recently from 3991ccb to 4351e6a Compare March 11, 2019 16:15
@Kingdutch
Copy link
Member Author

Force pushed to fix the incorrect files being edited and to fix the commit message that was incorrect as a result but ensuring this stays just a single commit instead of a wildly unreadable commit history (fix, fix final, really final fix, etc.).

Adding a class to user content isn't simple so extending the selector
from `.table` (elements with the class table) to also include `.page-node
.body-text table` (table elements in elements with the body-text class of
node pages) ensures that they're properly styled when using socialbase as
a theme.
@Kingdutch Kingdutch force-pushed the feature/3039170-body-text-table-styling branch from 4351e6a to fb62af2 Compare March 11, 2019 16:19
@bramtenhove
Copy link
Member

I'm wondering if we should add a change record for this. We are theoretically impacting styling that others already did for their themes right?

@Kingdutch
Copy link
Member Author

I'm wondering if we should add a change record for this. We are theoretically impacting styling that others already did for their themes right?

That's actually a good point! I think I agree although I don't know if it would have much more substance than what we put in the release notes. It would be a good highlight.

@bramtenhove
Copy link
Member

I don't mind if we say the same as in the release notes, but it would indeed serve as a nice highlight.

@Kingdutch Kingdutch added the needs work: change record This change requires a change notice for developers on https://www.drupal.org/list-changes/social label Mar 21, 2019
@Kingdutch
Copy link
Member Author

A draft change record has been created here: https://www.drupal.org/node/3043143

@Kingdutch Kingdutch removed needs work: change record This change requires a change notice for developers on https://www.drupal.org/list-changes/social status: needs review This pull request is waiting for a requested review labels Mar 27, 2019
@Kingdutch
Copy link
Member Author

Given that this is a purely cosmetic change, Travis is green and the MOSS failures are on features that are not impacted by this addition I'm merging this branch in its current test state.

@Kingdutch Kingdutch merged commit 4827a2a into 8.x-5.x Mar 27, 2019
@Kingdutch Kingdutch deleted the feature/3039170-body-text-table-styling branch March 27, 2019 08:45
@jaapjan jaapjan added the backport: verified This pull request has been back ported to an older minor version label Apr 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport: verified This pull request has been back ported to an older minor version type: feature Adds a new feature to Open Social
3 participants