Skip to content

Commit

Permalink
feat(tip-group): add component tokens (#8988)
Browse files Browse the repository at this point in the history
**Related Issue:** #7180

## Summary

Adds the following component tokens (CSS props):

* `--calcite-tip-group-background-color`
* `--calcite-tip-group-text-color`
  • Loading branch information
jcfranco authored Mar 22, 2024
1 parent 10523a4 commit 9cdbd15
Showing 1 changed file with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
/**
* CSS Custom Properties
*
* These properties can be overridden using the component's tag as selector.
*
* @prop --calcite-tip-group-background-color: defines the component's background color.
* @prop --calcite-tip-group-text-color: defines the component's text color.
*/

:host {
@apply bg-foreground-1
text-color-2
text-n1h
@apply block
box-border
block;
text-n1h;

background-color: var(--calcite-tip-group-background-color, var(--calcite-color-foreground-1));
color: var(--calcite-tip-group-text-color, var(--calcite-color-text-2));
}

::slotted(calcite-tip) {
@apply m-0 border-none;
max-inline-size: var(--calcite-tip-max-width);
}

calcite-tip {
//TODO: sub-component tokens
}

@include base-component();

0 comments on commit 9cdbd15

Please sign in to comment.