diff --git a/.changeset/hot-parrots-shave.md b/.changeset/hot-parrots-shave.md new file mode 100644 index 00000000..307d4124 --- /dev/null +++ b/.changeset/hot-parrots-shave.md @@ -0,0 +1,5 @@ +--- +'@primer/css': patch +--- + +Remove trailing margin from last-child within a markdown table cell diff --git a/src/markdown/tables.scss b/src/markdown/tables.scss index ee095c99..0575f149 100644 --- a/src/markdown/tables.scss +++ b/src/markdown/tables.scss @@ -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);