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

Altera nome da classe de btn para button #1279

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function _Button({

return (
<button
className={`btn-main btn-${variant} btn-${theme} btn-size-${size} text-style-button `}
className={`button-main button-${variant} button-${theme} button-size-${size} text-style-button `}
{...rest}
>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// ** BUTTON MAIN

.btn-main {
.button-main {
padding: 0 0.875rem;
border-radius: 8px;
width: auto;
Expand All @@ -23,15 +23,15 @@

// ** BUTTON SIZES [SM, MD, LG]

.btn-size-sm {
.button-size-sm {
height: 2.125rem;
}

.btn-size-md {
.button-size-md {
height: 2.5rem;
}

.btn-size-lg {
.button-size-lg {
padding: 0 1.625rem;
height: 3rem;
}
Expand All @@ -40,17 +40,17 @@

// ** BUTTON VARIANT [CONTAINED, OUTLINE, TEXT]

.btn-contained {
.button-contained {
border: none;
color: $color-overlay !important;
}

.btn-outline {
.button-outline {
border: solid 1px;
background-color: transparent !important;
}

.btn-text {
.button-text {
border: none;
background-color: transparent !important;
}
Expand All @@ -59,69 +59,69 @@

// ** BUTTON STYLES [PRIMARY, SECONDARY, DANGER]

.btn-primary {
.button-primary {
border-color: $color-action-primary-default;
background-color: $color-action-primary-default;
color: $color-action-primary-default;

&.btn-contained:hover {
&.button-contained:hover {
background-color: $color-action-primary-hovered !important;
}

&.btn-contained:active {
&.button-contained:active {
background-color: $color-action-primary-pressed !important;
}

&.btn-outline:hover, &.btn-text:hover {
&.button-outline:hover, &.button-text:hover {
background-color: $color-surface-success-subdued-hovered !important;
}

&.btn-outline:active, &.btn-text:hover {
&.button-outline:active, &.button-text:hover {
background-color: $color-surface-success-subdued-pressed !important;
}

}

.btn-secondary {
.button-secondary {
border-color: $color-action-secondary-default;
background-color: $color-action-secondary-default;
color: $color-action-secondary-default;

&.btn-contained:hover {
&.button-contained:hover {
background-color: $color-action-secondary-hovered !important;
}

&.btn-contained:active {
&.button-contained:active {
background-color: $color-action-secondary-pressed !important;
}

&.btn-outline:hover, &.btn-text:hover {
&.button-outline:hover, &.button-text:hover {
background-color: $color-surface-base-hovered !important;
}

&.btn-outline:active, &.btn-text:hover {
&.button-outline:active, &.button-text:hover {
background-color: $color-surface-base-pressed !important;
}
}

.btn-danger {
.button-danger {
border-color: $color-action-critical-default;
background-color: $color-action-critical-default;
color: $color-action-critical-default;

&.btn-contained:hover {
&.button-contained:hover {
background-color: $color-action-critical-hovered !important;
}

&.btn-contained:active {
&.button-contained:active {
background-color: $color-action-critical-pressed !important;
}

&.btn-outline:hover, &.btn-text:hover {
&.button-outline:hover, &.button-text:hover {
background-color: $color-surface-critical-subdued-hovered !important;
}

&.btn-outline:active, &.btn-text:hover {
&.button-outline:active, &.button-text:hover {
background-color: $color-surface-critical-subdued-pressed !important;
}
}
Expand Down