Skip to content

Commit

Permalink
Un-bold table headings that are multiline
Browse files Browse the repository at this point in the history
Really we are just removing bolds from paragraphs inside of table cells.

It's a bit weird because table cells can be multi-line and single line
in the same table.

In this case, we just have an inconsistent table. I plan to take a 'wait and see'
approach to this.
  • Loading branch information
pcraig3 committed Nov 8, 2024
1 parent c659c91 commit a41bf7b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve

### Changed

- Un-bold paragraphs in table headings
- Means that multi-line table headings are unbolded by default
- Remove stroke on CDC logo svg
- Add CSS class to add bullets to lists
- "Adam 👀" is now "Ready for QA"
Expand All @@ -24,6 +26,7 @@ The format is based on Keep a Changelog, and this project adheres to Semantic Ve

### Fixed

- H7 elements are properly recognized as subsections
- Add migration to fix previous "PRINT..." audit events that were not JSON formatted
- Convert literal asterisks to `*` inside of HTML lists in table cells
- More left padding on callout box lists that are NOT in the right hand column
Expand Down
5 changes: 5 additions & 0 deletions bloom_nofos/bloom_nofos/static/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ details > summary > span:hover {
word-break: break-word;
}

.nofo-edit-table--subsection--body table thead th p,
.nofo-edit-table--subsection--body table tbody tr:first-of-type th p {
font-weight: 400;
}

.nofo_edit .nofo-edit-table--subsection--body a.nofo_edit--broken-link,
.nofo_edit
.nofo-edit-table--subsection--name.nofo_edit--heading-error
Expand Down
5 changes: 5 additions & 0 deletions bloom_nofos/bloom_nofos/static/theme-base.css
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ table tbody tr:first-of-type th {
text-align: left;
}

table thead th p,
table tbody tr:first-of-type th p {
font-weight: 400;
}

table thead th > p,
table tbody tr:first-of-type th > p {
margin-top: 0;
Expand Down

0 comments on commit a41bf7b

Please sign in to comment.