add custom property for progress bar shadows

This commit is contained in:
lindsaym-fa
2024-01-16 14:08:11 -06:00
parent 4260b27fd2
commit 595cc303e7
5 changed files with 21 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ import type { CSSResultGroup } from 'lit';
* @cssproperty --track-color - The color of the track.
* @cssproperty --indicator-color - The color of the indicator.
* @cssproperty --label-color - The color of the label.
* @cssproperty --box-shadow - The shadow effects around the edges of the progress bar.
*/
export default class WaProgressBar extends WebAwesomeElement {
static styles: CSSResultGroup = styles;

View File

@@ -9,6 +9,7 @@ export default css`
--track-color: var(--wa-color-neutral-fill-highlight);
--indicator-color: var(--wa-color-brand-spot);
--label-color: var(--wa-color-brand-text-on-spot);
--box-shadow: none;
display: block;
}
@@ -18,7 +19,7 @@ export default css`
background-color: var(--track-color);
height: var(--height);
border-radius: var(--wa-corners-pill);
box-shadow: var(--wa-shadow-inset);
box-shadow: var(--box-shadow);
overflow: hidden;
}

View File

@@ -90,3 +90,9 @@ wa-textarea {
}
}
/* #endregion */
/* #region Progress bar */
wa-progress-bar {
--box-shadow: var(--wa-shadow-inset);
}
/* #endregion */

View File

@@ -75,3 +75,9 @@ wa-switch {
inset 0 -0.0625rem 0.0625rem 0 rgb(0 0 0 / 0.1) /* inner shadow */, var(--wa-shadow-level-1) /* outer shadow */;
}
/* #endregion */
/* #region Progress bar */
wa-progress-bar {
--box-shadow: var(--wa-shadow-inset);
}
/* #endregion */

View File

@@ -266,3 +266,9 @@ wa-switch {
inset 0 -0.0625rem 0 0 rgb(0 0 0 / 0.2) /* bottom highlight */, var(--wa-shadow-level-1) /* outer shadow */;
}
/* #endregion */
/* #region Progress bar */
wa-progress-bar {
--box-shadow: var(--wa-shadow-inset);
}
/* #endregion */