Skip to content

Commit

Permalink
fix(code-block): badge padding
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers committed Sep 22, 2024
1 parent 73fc6a4 commit 10dc69d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion elements/rh-badge/rh-badge.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ span {
font-size: var(--rh-font-size-body-text-xs, 0.75rem);
font-weight: 700;
line-height: var(--rh-line-height-body-text, 1.5);
padding-inline: var(--rh-space-md, 8px);
padding-inline: var(--_badge-padding, var(--rh-space-md, 8px));
}

.on.dark { background-color: var(--rh-color-surface-darker, #1f1f1f); }
Expand Down
1 change: 1 addition & 0 deletions elements/rh-code-block/rh-code-block.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
--rh-code-block-callout-size: var(--rh-size-icon-02, 24px);
--_aspect-ratio: 1;
--_badge-size: var(--rh-code-block-callout-size);
--_badge-padding: 0;

display: block;
max-width: 1000px;
Expand Down

0 comments on commit 10dc69d

Please sign in to comment.