-
Notifications
You must be signed in to change notification settings - Fork 75
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
[Block Section] Deprecate status
property, add icon
property
#8110
Comments
This brings into question the placement of the |
Should this also apply to Block? It has a status prop that overrides the icon slot (note this is a slot instead of a prop on this one). |
Yeah, probably, as that use case could be solved with more general slots / props. This one is related #4932 |
Figma file documenting the changes for the above and related designs for #4932. Recommend implementing them together. |
status
property, add icon
propertystatus
property, add icon
property
**Related Issue:** #7180 ## Summary Adds the following component tokens: * `--calcite-block-section-background-color` * `--calcite-block-section-border-color` * `--calcite-block-section-heading-text-color` * `--calcite-block-section-heading-text-color-hover` **Note**: added internal icon color token for [upcoming `icon` prop](#8110).
**Related Issue:** #8110 ## Summary Remove the `status` property and instead add an `icon` property. Provide a demo and screenshot coverage.
Installed and assigned for verification. |
🍍 Verified locally on |
Check existing issues
Description
Currently, Block Section has a
status
property. There are a few issues here:1 - When used with
toggle-display="switch"
- there is a visual overlap.2 - I don't think the component itself should convey status. I think using the component in such a way, to convey the status of content inside, is a fine use case, but I think associating validity with a "Block Section" component is weird.
(see overlap)
Propose we remove the
status
property, and instead add anicon
property. This would:1 - Allow the existing use case to continue (via setting an
icon
and using a css variable to style the color as needed).2 - Allow for other use cases of iconography in Block Section besides the couple tied to a
status
Acceptance Criteria
Block Section's
status
property is deprecated. Block Section hasicon
property added. Ensure the new property works and displays correctly without overlap in bothtoggle-display
modes.Relevant Info
Perhaps a content-start/end slot could be added as we have elsewhere, but I'd do that later and only if requested.
cc @SkyeSeitz @ashetland
Which Component
Block Section
Example Use Case
No response
Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: