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(shell-panel): add component tokens #8975

Merged
merged 9 commits into from
Apr 15, 2024

Conversation

alisonailea
Copy link
Contributor

@alisonailea alisonailea commented Mar 20, 2024

Related Issue: #7180

Summary

Shell Panel

--calcite-shell-panel-background-color: Specifies the background color of the component.
--calcite-shell-panel-corner-radius: Specifies the corner radius of the component.
--calcite-shell-panel-detached-max-height: [Deprecated] Use the heightScale property instead. When displayMode is float, specifies the maximum height of the component.
--calcite-shell-panel-height: When layout is horizontal, or layout is vertical and displayMode is float, specifies the height of the component.
--calcite-shell-panel-max-height: When layout is horizontal, or layout is vertical and displayMode is float, specifies the maximum height of the component.
--calcite-shell-panel-max-width: Specifies the maximum width of the component.
--calcite-shell-panel-min-height: When layout is horizontal, or layout is vertical and displayMode is float, specifies the minimum height of the component.
--calcite-shell-panel-min-width: Specifies the minimum width of the component.
--calcite-shell-panel-shadow: Specifies the shadow of the component.
--calcite-shell-panel-width: Specifies the width of the component.
--calcite-shell-panel-z-index: Specifies the z-index value for the component.

-shell-panel-background-color: Specifies the background color of the component.
--calcite-shell-panel-corner-radius: Specifies the corner radius of the component.
--calcite-shell-panel-detached-max-height: [Deprecated] Use the `heightScale` property instead. When `displayMode` is `float`, specifies the maximum height of the component.
--calcite-shell-panel-height: When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float`, specifies the height of the component.
--calcite-shell-panel-max-height: When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float`, specifies the maximum height of the component.
--calcite-shell-panel-max-width: Specifies the maximum width of the component.
--calcite-shell-panel-min-height: When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float`, specifies the minimum height of the component.
--calcite-shell-panel-min-width: Specifies the minimum width of the component.
--calcite-shell-panel-shadow: Specifies the shadow of the component.
--calcite-shell-panel-width: Specifies the width of the component.
--calcite-shell-panel-z-index: Specifies the z-index value for the component.
@alisonailea alisonailea added enhancement Issues tied to a new feature or request. pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Mar 20, 2024
@alisonailea alisonailea changed the title feat(shell panel): add component tokens feat(shell-panel): add component tokens Mar 20, 2024
@alisonailea alisonailea changed the base branch from main to epic/7180-component-tokens March 21, 2024 01:06
@alisonailea alisonailea added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Mar 21, 2024
Copy link
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.

@github-actions github-actions bot added the Stale Issues or pull requests that have not had recent activity. label Mar 29, 2024
@@ -34,7 +34,7 @@
}
}

button {
.button {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these changes intentional? They seem unrelated to shell-panel.

min-inline-size: var(--calcite-shell-panel-min-width-internal);
}
.content {
inline-size: var(--calcite-shell-panel-width, var(--calcite-internal-shell-panel-width));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should --calcite-shell-panel-width be renamed to --calcite-shell-panel-content-width?

…components into astump/7180-shell-panel

# Conflicts:
#	packages/calcite-components/src/components/action/action.scss
@alisonailea alisonailea removed the Stale Issues or pull requests that have not had recent activity. label Apr 11, 2024
@@ -12,7 +12,7 @@
* @prop --calcite-shell-panel-min-height: When `layout` is `horizontal`, or `layout` is `vertical` and `displayMode` is `float`, specifies the minimum height of the component.
* @prop --calcite-shell-panel-min-width: Specifies the minimum width of the component.
* @prop --calcite-shell-panel-shadow: Specifies the shadow of the component.
* @prop --calcite-shell-panel-width: Specifies the width of the component.
* @prop --calcite-shell-panel-content-width: Specifies the width of the component.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we deprecate this and add a new one for content-width? I think the same would need to apply to min / max here as well.

It's also worth considering if we should just leave the initial name and apply this to the container itself (including slotted action bar), which I think it more in line with use case. A user can already control the width of slotted Panel, or other content, by setting width on that element.

cc @driskull for thoughts.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also worth considering if we should just leave the initial name and apply this to the container itself (including slotted action bar), which I think it more in line with use case. A user can already control the width of slotted Panel, or other content, by setting width on that element.

That sounds reasonable to me.

…components into astump/7180-shell-panel

# Conflicts:
#	packages/calcite-components/src/components/shell-panel/shell-panel.e2e.ts
@alisonailea alisonailea merged commit 22ce814 into epic/7180-component-tokens Apr 15, 2024
4 checks passed
@alisonailea alisonailea deleted the astump/7180-shell-panel branch April 15, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants