Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(action): large component needs to match figma design #2786

Merged
merged 8 commits into from Sep 3, 2021
50 changes: 40 additions & 10 deletions src/components/calcite-action/calcite-action.scss
Expand Up @@ -64,16 +64,31 @@
}
}

:host([scale="s"]) .button {
@apply p-2;
:host([scale="s"]) {
.button {
@apply font-normal p-2 text--2h;
}
.button--text-visible .icon-container {
@apply mr-2;
}
asangma marked this conversation as resolved.
Show resolved Hide resolved
}

:host([scale="m"]) .button {
@apply p-4;
:host([scale="m"]) {
.button {
@apply font-normal p-4 text--1h;
}
.button--text-visible .icon-container {
@apply mr-3;
}
}

:host([scale="l"]) .button {
@apply p-5 text--1h;
:host([scale="l"]) {
.button {
@apply font-normal p-5 text-0h;
}
.button--text-visible .icon-container {
@apply mr-4;
}
}

:host([alignment="center"]) .button {
Expand Down Expand Up @@ -107,22 +122,37 @@
@apply w-full;

.icon-container {
@apply m-0 mr-3;
@apply m-0;
}
.text-container--visible {
@apply m-0 mr-2;
}
}

.button--text-visible.calcite--rtl {
.icon-container {
@apply m-0 ml-3;
}
.text-container--visible {
@apply m-0 ml-2;
}
}

:host([scale="s"]) {
.button--text-visible.calcite--rtl .icon-container {
@apply m-0 ml-2;
}
}

:host([scale="m"]) {
.button--text-visible.calcite--rtl .icon-container {
@apply m-0 ml-3;
}
}

:host([scale="l"]) {
.button--text-visible.calcite--rtl .icon-container {
@apply m-0 ml-4;
}
}

:host([active]) .button,
:host([active]) .button:hover,
:host([active]) .button:focus,
Expand Down