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
11 changes: 11 additions & 0 deletions libs/core/src/components/pds-progress/docs/pds-progress.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ Allows for `pds-progress` to be filled with a custom color. Accepts any valid co
<pds-progress component-id="fillcolor" label="Fill color" percent="95" fill-color="#86D5BC"></pds-progress>
</DocCanvas>

### Fill Color with Gradient

You can also use CSS gradients for more visual interest.

<DocCanvas client:only mdxSource={{
react: `<PdsProgress componentId="fillcolor-gradient" label="Gradient fill color" percent="75" fillColor="linear-gradient(to right, var(--pine-color-red-300), var(--pine-color-green-300))"></PdsProgress>`,
webComponent: `<pds-progress component-id="fillcolor-gradient" label="Gradient fill color" percent="75" fill-color="linear-gradient(to right, var(--pine-color-red-300), var(--pine-color-green-300))"></pds-progress>
`}}>
<pds-progress component-id="fillcolor-gradient" label="Gradient fill color" percent="75" fill-color="linear-gradient(to right, var(--pine-color-red-300), var(--pine-color-green-300))"></pds-progress>
</DocCanvas>

### Tooltip

A tooltip can be added by combining the `progress` component with a [tooltip](/docs/components-tooltip--default).
Expand Down
4 changes: 2 additions & 2 deletions libs/core/src/components/pds-progress/pds-progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ progress::-webkit-progress-bar {
}

progress::-webkit-progress-value {
background-color: var(--color-progress-fill, var(--pine-color-brand));
background: var(--color-progress-fill, var(--pine-color-brand));
border-radius: var(--pine-dimension-2xs);
}

progress::-moz-progress-bar {
background-color: var(--color-progress-fill, var(--pine-color-brand));
background: var(--color-progress-fill, var(--pine-color-brand));
border-radius: var(--pine-dimension-2xs);
}

Expand Down
Loading