Skip to content

Commit

Permalink
refactor(Tag): use CSS logical properties instead of physical values (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cata1989 authored Jun 21, 2024
1 parent 9494ecb commit 508b442
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/beeq/src/components/tag/scss/bq-tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

.bq-tag {
@apply box-border inline-flex select-none flex-row items-center justify-center bg-[--bq-tag--background-color];
@apply gap-[--bq-tag--medium-gap] px-[--bq-tag--medium-padding-x] py-[--bq-tag--medium-padding-y] font-medium leading-regular text-text-primary;
@apply gap-[--bq-tag--medium-gap] font-medium leading-regular text-text-primary p-b-[--bq-tag--medium-padding-y] p-i-[--bq-tag--medium-padding-x];
@apply rounded-[--bq-tag--border-radius] border-[length:--bq-tag--border-width] border-[color:--bq-tag--border-color];
@apply transition-colors duration-300 ease-in-out;

Expand All @@ -25,7 +25,7 @@

.bq-tag__xsmall,
.bq-tag__small {
@apply gap-[--bq-tag--small-gap] px-[--bq-tag--small-padding-x] py-[--bq-tag--small-padding-y];
@apply gap-[--bq-tag--small-gap] p-b-[--bq-tag--small-padding-y] p-i-[--bq-tag--small-padding-x];

/* Apply predefined border radius only if the border property have NO VALUE */
&:not(.has-border) {
Expand Down Expand Up @@ -102,7 +102,7 @@
/* ------------------------------ Close button ------------------------------ */

.bq-tag__close::part(button) {
@apply pointer-events-none h-fit border-0 p-0;
@apply pointer-events-none border-0 bs-fit p-b-0 p-i-0;
}

/* --------------- Apply the right size to the bq-icon prefix --------------- */
Expand Down

0 comments on commit 508b442

Please sign in to comment.