-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(navigation-logo): add component tokens (#10582)
**Related Issue:** #7180 ## Summary Add the following component-scoped CSS Variables to calcite-navigation-logo: `--calcite-navigation-accent-color`: Specifies the component's border color when `active`. `--calcite-navigation-background-color`: Specifies the component's background color. `--calcite-navigation-logo-heading-text-color`: Specifies the component's default color for heading text. `--calcite-navigation-logo-text-color`: Specifies the component's default color for icon and description text.
- Loading branch information
1 parent
cfecc05
commit 0638891
Showing
4 changed files
with
139 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
packages/calcite-components/src/custom-theme/navigation-logo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { html } from "../../support/formatting"; | ||
import { boolean } from "../../.storybook/utils"; | ||
|
||
export const navigationLogoTokens = { | ||
calciteNavigationAccentColor: "", | ||
calciteNavigationBackgroundColor: "", | ||
calciteNavigationLogoHeadingTextColor: "", | ||
calciteNavigationLogoTextColor: "", | ||
}; | ||
|
||
const navigationLogo = (active = false): string => html` | ||
<calcite-navigation-logo | ||
heading="Walt's Chips" | ||
description="Eastern Potato Chip Company" | ||
icon="layers" | ||
label="Walt's Chips" | ||
${boolean("active", active)} | ||
> | ||
</calcite-navigation-logo> | ||
`; | ||
|
||
export const navigationLogos = html` ${navigationLogo(true)} ${navigationLogo()} `; |