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

[Theme] - Change Primary Buttons colors for Secondary Theme #651

Merged
merged 9 commits into from
Dec 17, 2020

Conversation

daigof
Copy link
Contributor

@daigof daigof commented Dec 16, 2020

Disabled Button Review

@benkolde if we change disabled button to tertiaryTint3 background there is a visual change in Primary Theme

PRIMARY THEME with tertiaryTint3 background #F8F8FA

image

PRIMARY THEME with defaultLight background #EDEDF0 current in PROD

image

Options:

1- Accept the change for Primary Theme
2- Add a conditional and use different background colors for themes
3- Accept to use the current defaultLight background color and accept the change to secondary theme (barely noticeable)

SECONDARY THEME with tertiaryTint3 background #F2F0EF

image

SECONDARY THEME with defaultLight background #F0EEEC

image

@snags88 snags88 temporarily deployed to curology-radiance-pr-651 December 16, 2020 19:00 Inactive
Copy link
Contributor

@benkolde benkolde left a comment

Choose a reason for hiding this comment

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

🙌 can we remove the border from the disabled buttons? only thing I noticed. These look great!

@daigof
Copy link
Contributor Author

daigof commented Dec 16, 2020

Oh I forgot to do/review the disabled comment, yeah I will take a look at it

@daigof
Copy link
Contributor Author

daigof commented Dec 16, 2020

@benkolde can you review the Disabled button section and choose 1/2/3 option please. (easiest less impactful option would be 3 for me)

@benkolde
Copy link
Contributor

@benkolde can you review the Disabled button section and choose 1/2/3 option please. (easiest less impactful option would be 3 for me)

@daigof I'm fine with 3, is it not easy to remove the border between both themes?

@daigof
Copy link
Contributor Author

daigof commented Dec 16, 2020

@benkolde the border was never an issue / concern. You probably didn't noticed but in the review app secondary theme has a background of #F0EEEC (defaultLight) instead of what we have in Figma #F2F0EF (teritaryTint3) the diference is not noticeable but if we change to tint3 we are creating a visual regression for primary theme. so It is better to just use defaultLight for both

@benkolde
Copy link
Contributor

@daigof ahh i see. Okay yeah, number 3 is good

@snags88 snags88 temporarily deployed to curology-radiance-pr-651 December 16, 2020 19:52 Inactive
Copy link
Contributor

@michaeljaltamirano michaeljaltamirano left a comment

Choose a reason for hiding this comment

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

No concerns about the actual styling but would like to see your thoughts on how to better organize 1:1 theme mapping exceptions in this repo.

@snags88 snags88 temporarily deployed to curology-radiance-pr-651 December 17, 2020 15:11 Inactive
@@ -0,0 +1,31 @@
import { ThemeColors, ThemeType } from '../../constants';

export const primaryButtonFontColor = (theme: ThemeType) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is great! I wonder if we should add a comment at the top of the file that explains that any ternary that is checking theme.__type should probably be moved into a util function in this file? (With the one exception being the Icon component, as you left it).

This isn't not a blocking comment--thank you for this cleanup 🙂

Copy link
Contributor

@michaeljaltamirano michaeljaltamirano left a comment

Choose a reason for hiding this comment

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

🥳

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.

4 participants