Skip to content

Commit

Permalink
fix(comp:tag): change tag padding x to 8px
Browse files Browse the repository at this point in the history
  • Loading branch information
threedayAAAAA committed Jan 16, 2024
1 parent 2622096 commit 9f9117f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/components/tag/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
align-items: center;
color: var(--ix-tag-color, var(--ix-color-text-info));
background-color: var(--ix-tag-background-color, var(--ix-color-emphasized-container-bg));
padding: 0 calc(var(--ix-margin-size-sm) - var(--ix-tag-border-width));
padding: 0 var(--ix-margin-size-sm);
line-height: @tag-line-height;
border: var(--ix-tag-border-width) solid transparent;
border-radius: var(--ix-tag-border-radius);

& + &,
Expand All @@ -38,7 +37,7 @@
}

&-bordered {
border-color: var(--ix-tag-border-color, var(--ix-color-border));
box-shadow: inset 0 0 0 var(--ix-tag-border-width) var(--ix-tag-border-color, var(--ix-color-border));
}

&-round {
Expand Down Expand Up @@ -88,7 +87,7 @@
height: @tag-prefix-size;
width: @tag-prefix-size;
background-color: inherit;
border: var(--ix-tag-border-width) solid var(--ix-color-container-bg);
box-shadow: inset 0 0 0 var(--ix-tag-border-width) var(--ix-color-container-bg);
border-radius: @tag-prefix-size;
}
}
Expand Down

0 comments on commit 9f9117f

Please sign in to comment.