Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Refactor alert colors to variables #2285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hisuwh
Copy link

@hisuwh hisuwh commented Jan 29, 2020

I'm doing some light theming for an application over the top of the teams theme. Most of the alert types are using variables for their colors - so these can be more easily overridden.

This is a small refactor to make this true for the success and warning states also.

@msftclas
Copy link

msftclas commented Jan 29, 2020

CLA assistant check
All CLA requirements met.

@@ -79,7 +77,7 @@ const alertStyles: ComponentSlotStylesPrepared<AlertProps, AlertVariables> = {
fontWeight: v.fontWeight,
visibility: 'visible',

...getIntentColorsFromProps(p, v, siteVariables),
...getIntentColorsFromProps(p, v),
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@mnajdova
Copy link
Contributor

Please add changelog entry for the changes, something like:

  • Add variables for the success and warning states in the alertStyles in Teams theme @hisuwh (#2285)

@hisuwh
Copy link
Author

hisuwh commented Feb 2, 2020

Sorry @mnajdova are you asking me to do that? Not quite what you want me to do if so?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants