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

Add theme prop to Icons #1155

Merged

Conversation

oliverabrahams
Copy link
Contributor

What are you changing?

  • Added new theming to Icons

Why?

@oliverabrahams oliverabrahams requested review from a team as code owners February 5, 2024 14:26
Copy link

changeset-bot bot commented Feb 5, 2024

🦋 Changeset detected

Latest commit: 741a15b

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

This PR includes changesets to release 1 package
Name Type
@guardian/source-react-components Major

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

Copy link
Contributor

github-actions bot commented Feb 5, 2024

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@github-actions github-actions bot added the 📦 npm Affects a @guardian package on NPM label Feb 5, 2024
@oliverabrahams oliverabrahams changed the base branch from main to release/source-react-components-themeing February 5, 2024 14:26
@oliverabrahams oliverabrahams changed the title Oa/icons theming Add theming to Icons Feb 5, 2024
@oliverabrahams oliverabrahams changed the title Add theming to Icons Add theme prop to Icons Feb 5, 2024
Copy link
Contributor

@mxdvl mxdvl left a comment

Choose a reason for hiding this comment

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

Am I correct in thinking that only monochrome icons can be themed?

@oliverabrahams
Copy link
Contributor Author

Am I correct in thinking that only monochrome icons can be themed?

Yes, I think that makes sense. What do you think?

@mxdvl
Copy link
Contributor

mxdvl commented Feb 6, 2024

Am I correct in thinking that only monochrome icons can be themed?

Yes, I think that makes sense. What do you think?

Yes, I think that enabling polychromatic icons to be styled is going to be a much larger endeavour that is best tackled only if consumers demand it.

@@ -327,19 +331,6 @@ MediumIconsBrandTheme.parameters = {
default: 'brandBackground.primary',
},
};
MediumIconsBrandTheme.decorators = [
Copy link
Contributor

Choose a reason for hiding this comment

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

Glad to see these style overrides removed and replaced with a supported method so we're not encouraging people to do the wrong thing 🙈

Copy link
Contributor

@jamesmockett jamesmockett left a comment

Choose a reason for hiding this comment

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

Nice work 🚀

@oliverabrahams oliverabrahams merged commit 094d0a0 into release/source-react-components-themeing Feb 7, 2024
11 checks passed
@oliverabrahams oliverabrahams deleted the oa/icons-theming branch February 7, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 npm Affects a @guardian package on NPM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants