1
1
mirror of https://github.com/primer/css.git synced 2024-12-23 06:01:54 +03:00

Remove trailing margin from HTML elements within markdown tables (#2365)

* Remove trailing margin from last-child within a markdown table cell

* Add changeset

* Move new styles to table-specific file

* Disable `selector-max-compound-selectors` stylelint

Co-authored-by: simurai <simurai@github.com>
This commit is contained in:
Jack Brewer 2023-01-24 04:21:28 +00:00 committed by GitHub
parent 872a578e0d
commit 4b94fbb759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
'@primer/css': patch
---
Remove trailing margin from last-child within a markdown table cell

View File

@ -1,5 +1,5 @@
// Needs refactoring
// stylelint-disable selector-max-type
// stylelint-disable selector-max-type, selector-max-compound-selectors
.markdown-body {
// Tables
table {
@ -20,6 +20,12 @@
border: $border-width $border-style var(--color-border-default);
}
td {
> :last-child {
margin-bottom: 0;
}
}
tr {
background-color: var(--color-canvas-default);
border-top: $border-width $border-style var(--color-border-muted);