feat(tabs, tab, tab-title, tab-nav): update component tokens#10579
Closed
alisonailea wants to merge 2 commits intojcfranco/7180-add-tabs-component-tokensfrom
Closed
feat(tabs, tab, tab-title, tab-nav): update component tokens#10579alisonailea wants to merge 2 commits intojcfranco/7180-add-tabs-component-tokensfrom
alisonailea wants to merge 2 commits intojcfranco/7180-add-tabs-component-tokensfrom
Conversation
alisonailea
commented
Oct 22, 2024
| * | ||
| * These properties can be overridden using the component's tag as selector. | ||
| * | ||
| * @prop --calcite-tab-accent-color-hover: Specifies the component's accent color when hovered. |
Contributor
Author
There was a problem hiding this comment.
None of these are used in this component so I don't think these parts should be included in the doc.
Contributor
Author
|
An example implementation given the above code would go as follows... calcite-tabs.my-override {
--calcite-tab-background-color: red;
--calcite-tab-text-color: white;
--calcite-tab-border-color: green;
--calcite-accent-color: transparent;
--calcite-accent-color-hover: lightblue;
--calcite-accent-color-press: purple;
--calcite-icon-color: black;
--calcite-close-background-color: transparent;
--calcite-close-background-color-press: var(--calcite-color-transparent-press);
--calcite-close-icon-color: black;
--calcite-close-icon-color-press: darkgrey;
*[selected] {
--calcite-tab-icon-start-color: grey;
--calcite-tab-icon-end-color: darkblue;
}
*[bordered] {
&:hover {
--calcite-tab-background-color: darkred;
}
&:active {
--calcite-tab-background-color: white;
--calcite-tab-text-color: red;
}
}
} |
Contributor
|
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
Contributor
|
This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions. |
Member
|
Closing, as this was addressed in #11720. Thanks, @aPreciado88! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue: #7180
Summary
Tabs
--calcite-tab-background-color: Specifies background color of the component.
--calcite-tab-border-color: Specifies border color of the component.
Tab Title
--calcite-tab-text-color: Specifies the component's text color.
--calcite-tab-border-color: Specifies the component's border color.
--calcite-tab-background-color: Specifies the component's background color.
--calcite-accent-color: Specifies the component's accent color.
--calcite-accent-color-hover: Specifies the component's accent color when hovered.
--calcite-accent-color-press: Specifies the component's accent color when selected or active.
--calcite-tab-icon-start-color: Specifies the component's start icon color. Fallback to
--calcite-icon-coloror current color.--calcite-tab-icon-end-color: Specifies the component's end icon color. Fallback to
--calcite-icon-coloror current color.--calcite-close-icon-color: Specifies the color of the close icon.
--calcite-close-icon-color-press: Specifies the color of the close icon when interacted with.
--calcite-close-background-color: Specifies the background color of the close icon.
--calcite-close-background-color-press: Specifies the background color of the close icon when interacted with.
Tab
--calcite-tab-content-space-y: Specifies the vertical space between the component's content in the
defaultslot.Deprecates
--calcite-tab-content-block-padding: [Deprecated] Use
--calcite-tab-content-space-yinstead. Specifies the block padding of the component's content in thedefaultslot.Tab Nav
--calcite-tab-background-color: Specifies background color of the component.
--calcite-tab-border-color: Specifies border color of the component. Used for "bordered" tabs.
--calcite-tab-text-color: Specifies the icon and text color of the component.