-
Notifications
You must be signed in to change notification settings - Fork 77
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(panel): control panel header action tokens #11300
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,15 @@ | |
* @prop --calcite-panel-content-space: [Deprecated] Use `--calcite-panel-space` instead. Specifies the padding of the component's content. | ||
* @prop --calcite-panel-footer-padding: [Deprecated] Use `--calcite-panel-footer-space` instead. Specifies the padding of the component's footer. | ||
* @prop --calcite-panel-header-border-block-end: [Deprecated] Use `--calcite-panel-border-color` instead. Specifies the component header's block end border. | ||
|
||
* @prop --calcite-panel-header-action-menu-items-space: Specifies the space between actions in the header's action menu. | ||
* @prop --calcite-panel-header-action-background-color-hover: Specifies the background color of the component's `calcite-action` items in the panel header when hovered. | ||
* @prop --calcite-panel-header-action-background-color-press: Specifies the background color of the component's `calcite-action` items in the panel header when pressed. | ||
* @prop --calcite-panel-header-action-background-color: Specifies the background color of the component's `calcite-action` items in the panel header. | ||
* @prop --calcite-panel-header-action-corner-radius: Specifies the corner radius of the component's `calcite-action` items in the panel header. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one might not be needed? |
||
* @prop --calcite-panel-header-action-indicator-color: Specifies the color of the component's `calcite-action` items' indicator in the panel header. | ||
* @prop --calcite-panel-header-action-text-color-press: Specifies the text color of the component's `calcite-action` items in the panel header when pressed. | ||
* @prop --calcite-panel-header-action-text-color: Specifies the text color of the component's `calcite-action` items in the panel header. | ||
*/ | ||
|
||
:host { | ||
|
@@ -147,6 +156,26 @@ | |
margin-inline-end: auto; | ||
justify-content: center; | ||
|
||
.header-actions { | ||
--calcite-action-menu-items-space: var(--calcite-panel-header-action-menu-items-space, 0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think the My concern is that the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Applies to other fallback defaults below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this is a public prop on Action Menu - I'm not sure the history there (or if needed on that component), but I don't know if this needs to be added here - I think just the color ones are good for this. |
||
--calcite-action-background-color-hover: var( | ||
--calcite-panel-header-action-background-color-hover, | ||
var(--calcite-color-foreground-2) | ||
); | ||
--calcite-action-background-color-press: var( | ||
--calcite-panel-header-action-background-color-press, | ||
var(--calcite-color-foreground-3) | ||
); | ||
--calcite-action-background-color: var( | ||
--calcite-panel-header-action-background-color, | ||
var(--calcite-color-foreground-1) | ||
); | ||
--calcite-action-corner-radius: var(--calcite-panel-header-action-corner-radius, var(--calcite-corner-radius)); | ||
--calcite-action-indicator-color: var(--calcite-panel-header-action-indicator-color, var(--calcite-color-brand)); | ||
--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press, var(--calcite-color-text-1)) | ||
--calcite-action-text-color: var(--calcite-panel-header-action-text-color, var(--calcite-color-text-3)); | ||
} | ||
|
||
.heading, | ||
.description { | ||
@apply block | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a double space here inbetween
items in
. Applies to multiple lines here.