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

Issues with inheritance re: table paragraph styling #57

Open
SteelWagstaff opened this issue Nov 23, 2019 · 0 comments
Open

Issues with inheritance re: table paragraph styling #57

SteelWagstaff opened this issue Nov 23, 2019 · 0 comments
Labels
Milestone

Comments

@SteelWagstaff
Copy link
Member

Old Asana ticket:

We've got a book using the Jacobs theme and have noticed some strangeness inside of tables. What's happening is that inside of a table cell we've hit a hard return--the WYWSIWYG will then create a paragraph inside of the table cell. The problem is that the CSS for p elements is being applied rather than the CSS for table text. In this case, I think it could be fixed with some simple CSS, namely:

front-matter table p, .part table p, .chapter table p, .back-matter table p, body#tinymce.wp-editor table p {font-size: inherit; line-height: inherit;}

In this case the CSS for the table element (lines 439-454 of the style.css file) are setting the font-size to .9em and line height to 1.1em, but the paragraph element has a font-size value of 1.125rem and a line-height of 1.5; For now, we can put these rules (or similar ones) in place locally, but I wanted to flag them for a standard, uniform fix by whomever is working on theme improvements

@SteelWagstaff SteelWagstaff added this to the 1.2.2 milestone Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant