Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tree-item): add component tokens #8949

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@
* @prop --calcite-tree-item-chevron-color-hover: defines the color of the component's chevron on hover.
* @prop --calcite-tree-item-chevron-color: defines the color of the component's chevron.
* @prop --calcite-tree-item-icon-color: defines the icon color of the component.
* @prop --calcite-tree-item-line-color: Specifies the line color of the component.
* @prop --calcite-tree-item-selection-icon-color: defines the color of the component's selection icon.
* @prop --calcite-tree-item-text-color: Specifies the text color of the component.
*/

:host {
@apply text-color-3
block
max-w-full
cursor-pointer;
--calcite-internal-tree-item-text-color: var(--calcite-tree-item-text-color, var(--calcite-color-text-3));

@apply block
cursor-pointer
max-w-full;

color: var(--calcite-internal-tree-item-text-color);
}

.node-actions-container {
Expand Down Expand Up @@ -98,7 +103,7 @@
// ensure lines don't overlap focus outline
block-size: 96%;
content: "";
background-color: var(--calcite-color-border-2);
background-color: var(--calcite-tree-item-line-color, var(--calcite-color-border-2));
}
}

Expand Down Expand Up @@ -192,9 +197,12 @@
}
}

:host([selected]) .node-container,
:host([selected]) .node-container:hover {
@apply font-medium text-color-1;
:host([selected]) {
--calcite-internal-tree-item-text-color: var(--calcite-tree-item-text-color, var(--calcite-color-text-1));
}

:host([selected]) .node-container {
@apply font-medium;

.bullet-point,
.checkmark {
Expand Down
Loading