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(chip): deprecate pressed in favor of press #11389

Merged
merged 6 commits into from
Feb 18, 2025

Conversation

alisonailea
Copy link
Contributor

Related Issue: #10832

Summary

Deprecate --calcite-chip-select-icon-color-pressed token.

Add --calcite-chip-select-icon-color-press: Specifies the component's selection element icon color when active.

@github-actions github-actions bot added the chore Issues with changes that don't modify src or test files. label Jan 27, 2025
@@ -10,7 +10,8 @@
* @prop --calcite-chip-icon-color: Specifies the component's icon color.
* @prop --calcite-chip-close-icon-color: Specifies the component's close element icon color.
* @prop --calcite-chip-select-icon-color: Specifies the component's selection element icon color.
* @prop --calcite-chip-select-icon-color-pressed: Specifies the component's selection element icon color when active.
* @prop --calcite-chip-select-icon-color-pressed: [deprecate] Use `--calcite-chip-select-icon-color-press`. Specifies the component's selection element icon color when active.
* @prop --calcite-chip-select-icon-color-press: Specifies the component's selection element icon color when active.
Copy link
Member

Choose a reason for hiding this comment

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

@alisonailea it doesn't look like this new var is used anywhere? Should there also be tests here?

Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

I think this should be a feat as well since its adding a new token and deprecating an old one.

It should have tests added, story, and update the HTML page with an example using the token.

Copy link
Contributor

github-actions bot commented Feb 6, 2025

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 Feb 6, 2025
@alisonailea alisonailea changed the title chore(chip): deprecate pressed feat(chip): deprecate pressed in favor of press Feb 12, 2025
@github-actions github-actions bot added the enhancement Issues tied to a new feature or request. label Feb 12, 2025
@alisonailea alisonailea requested a review from driskull February 12, 2025 18:07
@alisonailea alisonailea removed the Stale Issues or pull requests that have not had recent activity. label Feb 12, 2025
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

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

LGTM! once the doc is fixed.

I think the title of the PR should also be:

feat(chip): add `press` tokens and deprecate `pressed` tokens

@alisonailea alisonailea added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Feb 12, 2025
@alisonailea alisonailea merged commit ebe29dc into dev Feb 18, 2025
14 checks passed
@alisonailea alisonailea deleted the astump/10832-deprecate-pressed branch February 18, 2025 17:33
@github-actions github-actions bot added this to the 2025-02-25 - Feb Milestone milestone Feb 18, 2025
@jcfranco
Copy link
Member

@alisonailea Can you amend the PR title as suggested above? From the changelog perspective, "pressed"/"press" isn't clear on its own, so tokens context is needed.

Here are the steps to amend the conventional commit entry (see example).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues with changes that don't modify src or test files. 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.

3 participants