Skip to content

Commit

Permalink
Loader
Browse files Browse the repository at this point in the history
- Fix color issue (light/dark mode)
  • Loading branch information
elad2412 committed Nov 16, 2023
1 parent 3d2ed52 commit 49c8015
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/pink/src/pages/elements/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ Work different from the other rotate loaders.
| ----------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------- |
| `--loading` | Loading precent | `--loading: 65%;` |
| `-loader-bg-color-light` | inner circle color (light-mode) that will fit background-color of the container | `--loader-bg-color-light: var(--color-neutral-5);` |
| `-loader-bg-color-dark` | inner circle color (dark-mode) that will fit background-color of the container | `--loader-bg-color-dark: var(--color-neutral-400);`|
| `-loader-bg-color-dark` | inner circle color (dark-mode) that will fit background-color of the container | `--loader-bg-color-dark: var(--color-neutral-100);`|

<Preview center>
<div class="loader is-loading" style="--loading:65%; --loader-bg-color-light:var(--color-neutral-5); --loader-bg-color-dark:var(--color-neutral-400);"></div>
<div class="loader is-loading" style="--loading:65%; --loader-bg-color-light:var(--color-neutral-5); --loader-bg-color-dark:var(--color-neutral-100);"></div>
</Preview>
5 changes: 3 additions & 2 deletions packages/ui/src/6-elements/_loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@

/* Theme Dark */
#{$theme-dark} & {
--p-base-color: var(--color-neutral-70);
--p-base-full-color: var(--color-neutral-20);
--p-loader-border-base-color: var(--color-neutral-20);
--p-loader-base-full-color: var(--color-neutral-100);
--p-loader-bg-color-default: var(--p-loader-bg-color-dark);
}
}

0 comments on commit 49c8015

Please sign in to comment.