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

Remove Salt icon color and style overrides #487

Merged
merged 4 commits into from
Oct 5, 2023

Conversation

lilyvc
Copy link
Contributor

@lilyvc lilyvc commented Sep 20, 2023

This PR removes the overrides for Salt Icon color and size.

The color override is stopping the color prop from working on the Salt site, (added here: jpmorganchase/salt-ds#2462). The Salt icon will now use currentColor by default, so the override shouldn't be needed anymore.

The Mosaic Icon now uses number for size to align with Salt.

@lilyvc lilyvc requested a review from a team as a code owner September 20, 2023 11:19
@changeset-bot
Copy link

changeset-bot bot commented Sep 20, 2023

🦋 Changeset detected

Latest commit: 7e5a45d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@jpmorganchase/mosaic-components Patch
@jpmorganchase/mosaic-theme Patch
@jpmorganchase/mosaic-site-preset-styles Patch
@jpmorganchase/mosaic-cli Patch
@jpmorganchase/mosaic-labs-components Patch
@jpmorganchase/mosaic-content-editor-plugin Patch
@jpmorganchase/mosaic-core Patch
@jpmorganchase/mosaic-create-site Patch
@jpmorganchase/mosaic-from-http-request Patch
@jpmorganchase/mosaic-layouts Patch
@jpmorganchase/mosaic-open-api-component Patch
@jpmorganchase/mosaic-plugins Patch
@jpmorganchase/mosaic-schemas Patch
@jpmorganchase/mosaic-serialisers Patch
@jpmorganchase/mosaic-site-components Patch
@jpmorganchase/mosaic-site-middleware Patch
@jpmorganchase/mosaic-site Patch
@jpmorganchase/mosaic-source-git-repo Patch
@jpmorganchase/mosaic-source-http Patch
@jpmorganchase/mosaic-source-local-folder Patch
@jpmorganchase/mosaic-standard-generator Patch
@jpmorganchase/mosaic-store Patch
@jpmorganchase/mosaic-types Patch
@jpmorganchase/mosaic-workflows Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 20, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mosaic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 0:28am

export interface IconProps {
/** Additional class name for root class override. */
className?: string;
/** Name of the icon */
name: IconNames;
/** Size of Icon */
size?: 'small' | 'medium' | 'large';
Copy link
Contributor

Choose a reason for hiding this comment

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

Do teams use Icon directly? If so will this cause adoption issues? It it worth supporting both and then mapping to the new values?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I couldn't find any uses of it in the main docs repo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be safer to keep this but I don't know if its necessary

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should keep it for now.

@DavieReid DavieReid merged commit 5d31c31 into main Oct 5, 2023
7 checks passed
@DavieReid DavieReid deleted the remove-salt-icon-overrides branch October 5, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants