Skip to content

Commit

Permalink
Fix breadcrumb and inline code padding (#1064)
Browse files Browse the repository at this point in the history
* fix(Breadcrumb): fix breadcrumb padding

* fix(InlineCode): fix inline code padding
  • Loading branch information
Lisa18289 authored Dec 11, 2024
1 parent 91eb170 commit c962fce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
}
}

&:first-child .link {
padding-inline-start: 0;
}

&[data-disabled="true"] {
.link {
cursor: unset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
word-wrap: break-word;
background-color: var(--code--background-color);
padding-inline: var(--code--padding-x);
padding-block: var(--code--padding-y);
border-radius: var(--code--corner-radius);
display: inline-block;
display: inline;
width: fit-content;
max-width: 100%;

Expand Down
2 changes: 2 additions & 0 deletions packages/design-tokens/src/content/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ code:
value: "{line-height.m}"
padding-x:
value: "{size-px.xs}"
padding-y:
value: "{size-px.xxs}"
padding:
value: "{size-px.m}"
corner-radius:
Expand Down

0 comments on commit c962fce

Please sign in to comment.