Skip to content

Commit

Permalink
[core] fix(TagInput): left padding when no icon or tags (#6001)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Mar 6, 2023
1 parent ba82cd2 commit 7adf605
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/core/src/components/tag-input/_tag-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,15 @@ $tag-input-icon-padding-large: ($pt-input-height-large - $pt-icon-size-large) *

// use the larger, conventional input padding when there are no tags and no left icon present.
// see: https://github.com/palantir/blueprint/issues/2872
&:first-child .#{$ns}-input-ghost:first-child {
// recall that some padding-left is already applied on the root component.
padding-left: $input-padding-horizontal - $tag-input-padding;
&:first-child {
.#{$ns}-tag ~ .#{$ns}-input-ghost {
padding-left: 0;
}

.#{$ns}-input-ghost {
// some padding-left is already applied on the root component, so we should subtract that
padding-left: $input-padding-horizontal - $tag-input-padding;
}
}

> * {
Expand Down

1 comment on commit 7adf605

@adidahiya
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[core] fix(TagInput): left padding when no icon or tags (#6001)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.