Skip to content
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
2 changes: 1 addition & 1 deletion apps/pink/src/pages/components/inline-loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ title: Inline loader
<Preview center>
<only-preview>
<div class="box u-flex u-cross-center u-gap-16" style="--box-border-radius:var(--border-radius-xsmall); --p-box-padding:1rem 1.5rem;">
<div class="loader is-small"></div>
<div class="loader is-small is-transparent"></div>
<span class="u-trim u-stretch">Provide contextual message</span>
<button class="button is-secondary">
<span class="text">Button</span>
Expand Down
18 changes: 14 additions & 4 deletions apps/pink/src/pages/elements/loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,21 @@ description: Use loaders to indicate to users that something is in progress and
<div class="loader is-small"></div>
</Preview>

## Remove base border color

| State Class | Type | |
| -------------------- | ------------------- | ----------------------------------------------- |
| `is-transparent` | Remove Circle color | Base color of loading change to transparent |

<Preview center>
<div class="loader is-transparent"></div>
</Preview>

## Loading precent state
Work different from the other rotate loaders.
| State Class | Type | |
| -------------------- | -------- | ----------------------------------------------- |
| `is-loading` | Loading | Change behaving from rotating to loading |
| State Class | Type | |
| -------------------- | ------------------- | ----------------------------------------------- |
| `is-loading` | Loading | Change behaving from rotating to loading |

| param | represents | Example: |
| ----------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------- |
Expand All @@ -32,4 +41,5 @@ Work different from the other rotate loaders.

<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-100);"></div>
</Preview>
</Preview>

1 change: 1 addition & 0 deletions packages/ui/src/6-elements/_loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
background: hsl(var(--p-loader-bg-color));
}
}
&.is-transparent { --p-loader-base-full-color:var(--transparent)!important; }

&.is-small {
--p-loader-size: var(--loader-size, #{pxToRem(16)});
Expand Down