Skip to content

Commit

Permalink
refactor(Button): use CSS logical properties instead of physical valu…
Browse files Browse the repository at this point in the history
…es (#1102)
  • Loading branch information
Cata1989 authored Jun 11, 2024
1 parent 1d837d5 commit c0e2eb8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/beeq/src/components/button/scss/bq-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
}

:host {
@apply relative inline-block w-auto cursor-pointer;
@apply relative inline-block cursor-pointer is-auto;
}

:host([block]),
.block {
@apply w-full;
@apply is-full;
}

/* -------------------------------------------------------------------------- */
Expand Down Expand Up @@ -95,15 +95,15 @@
/* -------------------------------------------------------------------------- */

.small {
@apply h-[var(--bq-button--small-height)] px-[var(--bq-button--small-paddingX)] py-[var(--bq-button--small-paddingY)] text-[length:--bq-button--small-font-size];
@apply text-[length:--bq-button--small-font-size] bs-[--bq-button--small-height] p-b-[--bq-button--small-paddingY] p-i-[--bq-button--small-paddingX];
}

.medium {
@apply h-[var(--bq-button--medium-height)] px-[var(--bq-button--medium-paddingX)] py-[var(--bq-button--medium-paddingY)] text-[length:--bq-button--medium-font-size];
@apply text-[length:--bq-button--medium-font-size] bs-[--bq-button--medium-height] p-b-[--bq-button--medium-paddingY] p-i-[--bq-button--medium-paddingX];
}

.large {
@apply h-[var(--bq-button--large-height)] px-[var(--bq-button--large-paddingX)] py-[var(--bq-button--large-paddingY)] text-[length:--bq-button--large-font-size];
@apply text-[length:--bq-button--large-font-size] bs-[--bq-button--large-height] p-b-[--bq-button--large-paddingY] p-i-[--bq-button--large-paddingX];
}

/* -------------------------------------------------------------------------- */
Expand Down

0 comments on commit c0e2eb8

Please sign in to comment.