Skip to content

Commit

Permalink
Merge pull request #168 from newfold-labs/enhance/inherit-brand-var-i…
Browse files Browse the repository at this point in the history
…mageuploader-component

use branding variables in image uploader loading state gradient
  • Loading branch information
arunshenoy99 authored Feb 8, 2023
2 parents ce3a7cc + 3dbe154 commit bcf5f30
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
height: 100%;
position: absolute;
border-radius: 50px;
background: linear-gradient(45deg, #b6b5ff, #ff9797);
background: linear-gradient(45deg, var(--nfd-onboarding-loader-start), var(--nfd-onboarding-loader-end));
left: -100%;
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/OnboardingSPA/styles/_branding.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ body {
--nfd-onboarding-border: 219, 219, 219;
--nfd-onboarding-drawer-icon-fill: var(--nfd-onboarding-tertiary);
--nfd-onboarding-drawer-icon-active-fill: var(--nfd-onboarding-light);
--nfd-onboarding-loader-start: var(--nfd-onboarding-primary);
--nfd-onboarding-loader-end: var(--nfd-onboarding-tertiary);
--nfd-onboarding-step-loader-icon: url("../../Brands/bluehost/step-loader-logo.svg");
--nfd-onboarding-step-error-icon: url("../../Brands/bluehost/step-error-logo.svg");
}
Expand Down Expand Up @@ -57,6 +59,8 @@ body {
--nfd-onboarding-border: 245, 246, 248;
--nfd-onboarding-drawer-icon-fill: var(--nfd-onboarding-tertiary);
--nfd-onboarding-drawer-icon-active-fill: var(--nfd-onboarding-light);
--nfd-onboarding-loader-start: var(--nfd-onboarding-primary);
--nfd-onboarding-loader-end: var(--nfd-onboarding-tertiary);
}

&.nfd-brand-webcom {
Expand Down Expand Up @@ -85,5 +89,7 @@ body {
--nfd-onboarding-border: 219, 219, 219;
--nfd-onboarding-drawer-icon-fill: var(--nfd-onboarding-tertiary-alt);
--nfd-onboarding-drawer-icon-active-fill: var(--nfd-onboarding-tertiary-alt);
--nfd-onboarding-loader-start: var(--nfd-onboarding-primary);
--nfd-onboarding-loader-end: var(--nfd-onboarding-tertiary);
}
}

0 comments on commit bcf5f30

Please sign in to comment.