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

fix: correct teams theme siteVariables#110

Merged
sergiorv merged 8 commits intomasterfrom
sergio/colorupdates
Aug 30, 2018
Merged

fix: correct teams theme siteVariables#110
sergiorv merged 8 commits intomasterfrom
sergio/colorupdates

Conversation

@sergiorv
Copy link
Contributor

Updating the black color and changing the grays from colors with transparency to solid colors.
The rest of the colors are up to date with the Teams palette.

Copy link
Contributor

@alinais alinais left a comment

Choose a reason for hiding this comment

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

We used to created the values of the grays in a more dynamic way, using transparentize function (transparentize($app-black, .25)). Any reasons why we want to better hardcode it?

@sergiorv
Copy link
Contributor Author

We've had so many issues in the past by using transparency in colors, Design has determined that solid colors will work better across Teams UI.

  1. last push to full alignment with Office colors. We're the only ones using opacity for the in-between grays
  2. would like to use the in between grays for background colors more, transparency does not always allow that.

const blackRgbaFormat = (alpha: number): string => `rgba(37, 36, 36, ${alpha})`
export const black = blackRgbaFormat(1)
const blackRgbaFormat = (alpha: number): string => `rgba(37, 36, 35, ${alpha})`
export const black = '#252423'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we consolidate black and fontBlack?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, I've also removed app-gray-12 since it will be removed in the near future anyway.

@codecov
Copy link

codecov bot commented Aug 29, 2018

Codecov Report

Merging #110 into master will decrease coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   67.78%   67.71%   -0.08%     
==========================================
  Files         101      101              
  Lines        1366     1363       -3     
  Branches      261      261              
==========================================
- Hits          926      923       -3     
  Misses        438      438              
  Partials        2        2
Impacted Files Coverage Δ
src/themes/teams/components/Menu/menuVariables.ts 50% <ø> (ø) ⬆️
src/themes/teams/siteVariables.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78d7817...92593bc. Read the comment docs.

export const black = blackRgbaFormat(1)
const blackRgbaFormat = (alpha: number): string => `rgba(37, 36, 35, ${alpha})`
export const black = '#252423'
export const gray01 = blackRgbaFormat(0.95)
Copy link
Contributor

Choose a reason for hiding this comment

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

just out of curiosity - could you, please, suggest why this one remains to be the only which uses transparency instead of solid color?

@levithomason levithomason changed the title Color updates, also changing gray colors with transparency to solid fix: correct teams theme siteVariables Aug 30, 2018
@levithomason
Copy link
Member

@sergiorv this is ready for merge once tests pass 👍

@sergiorv sergiorv merged commit dc95292 into master Aug 30, 2018
@levithomason levithomason deleted the sergio/colorupdates branch October 11, 2018 21:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants