Skip to content

Commit

Permalink
MINOR: add success btn ton BIMDataButton component (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
LrxGaelle authored Dec 22, 2021
1 parent be7f387 commit fdfd961
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 4 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 35 additions & 0 deletions src/BIMDataComponents/BIMDataButton/_BIMDataButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,14 @@
background-color: var(--color-high-light);
}
}
/* style BIMDATA BTN GREEN FILL ------------- */
&--success {
background-color: var(--color-success);
color: var(--color-white);
&:hover {
background-color: var(--color-success-light);
}
}
/* style BIMDATA BTN FILL BTN ICON --------- */
&--btn-icon {
svg {
Expand Down Expand Up @@ -161,6 +169,20 @@
transition: background 0s;
}
}
&--success {
background-color: var(--color-success);
color: var(--color-white);
&:hover {
background: var(--color-success)
radial-gradient(circle, transparent 1%, var(--color-success) 1%)
center/15000%;
}
&:active {
background-color: var(--color-success-light);
background-size: 100%;
transition: background 0s;
}
}
}
&__outline {
justify-content: center;
Expand Down Expand Up @@ -200,6 +222,13 @@
background-color: var(--color-high-lighter);
}
}
&--success {
border-color: var(--color-success);
color: var(--color-success);
&:hover {
background-color: var(--color-success-lighter);
}
}
&:disabled {
border-color: var(--color-silver-dark);
color: var(--color-silver-dark);
Expand Down Expand Up @@ -242,6 +271,12 @@
background-color: var(--color-high-lighter);
}
}
&--success {
color: var(--color-success);
&:hover {
background-color: var(--color-success-lighter);
}
}
&:disabled {
color: var(--color-silver-dark);
cursor: auto;
Expand Down
1 change: 1 addition & 0 deletions src/assets/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ export default Object.freeze([
"primary",
"secondary",
"high",
"success",
"granite",
]);
4 changes: 2 additions & 2 deletions src/assets/css/_BIMDataVariables.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ html {
/* --------------------------------
color SUCCESS & VARIANTS -------------------------------- */
--color-success-lighter: rgba(226, 255, 239, 1);
--color-success-light: rgba(0, 226, 102, 1);
--color-success-light: rgba(0, 200, 92, 1);
--color-success: rgba(0, 175, 80, 1);
--color-success-dark: rgba(0, 124, 56, 1);
--color-success-dark: rgba(0, 149, 68, 1);

/* --------------------------------
color WARNING & VARIANTS -------------------------------- */
Expand Down
4 changes: 2 additions & 2 deletions src/assets/scss/_BIMDataVariables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ html {
/* --------------------------------
color SUCCESS & VARIANTS -------------------------------- */
--color-success-lighter: rgba(226, 255, 239, 1);
--color-success-light: rgba(0, 226, 102, 1);
--color-success-light: rgba(0, 200, 92, 1);
--color-success: rgba(0, 175, 80, 1);
--color-success-dark: rgba(0, 124, 56, 1);
--color-success-dark: rgba(0, 149, 68, 1);

/* --------------------------------
color WARNING & VARIANTS -------------------------------- */
Expand Down

0 comments on commit fdfd961

Please sign in to comment.