mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
add custom property for checkbox icon color
This commit is contained in:
@@ -13,6 +13,7 @@ export default css`
|
||||
--border-style: var(--wa-border-style);
|
||||
--border-width: var(--wa-form-control-border-width);
|
||||
--box-shadow: none;
|
||||
--checked-icon-color: var(--wa-color-brand-on-loud);
|
||||
--toggle-size: calc(1em * var(--wa-form-control-value-line-height));
|
||||
|
||||
display: inline-block;
|
||||
@@ -90,7 +91,7 @@ export default css`
|
||||
/* Checked/indeterminate */
|
||||
.checkbox--checked .checkbox__control,
|
||||
.checkbox--indeterminate .checkbox__control {
|
||||
color: var(--wa-color-brand-on-loud);
|
||||
color: var(--checked-icon-color);
|
||||
border-color: var(--border-color-checked);
|
||||
background-color: var(--background-color-checked);
|
||||
}
|
||||
|
||||
@@ -51,6 +51,7 @@ import type { CSSResultGroup, PropertyValues } from 'lit';
|
||||
* @cssproperty --border-style - The style of the checkbox's borders.
|
||||
* @cssproperty --border-width - The width of the checkbox's borders. Expects a single value.
|
||||
* @cssproperty --box-shadow - The shadow effects around the edges of the checkbox.
|
||||
* @cssproperty --checked-icon-color - The color of the checkbox's icon.
|
||||
* @cssproperty --toggle-size - The size of the checkbox.
|
||||
*/
|
||||
@customElement('wa-checkbox')
|
||||
|
||||
Reference in New Issue
Block a user