Skip to content

Commit

Permalink
fix(badge): update badge text colors (uber#5125)
Browse files Browse the repository at this point in the history
* fix(badge): update badge text colors

* test(vrt): update visual snapshots for 6a82035 (uber#5126)

Co-authored-by: UberOpenSourceBot <[email protected]>

Co-authored-by: UberOpenSourceBot <[email protected]>
Co-authored-by: UberOpenSourceBot <[email protected]>
  • Loading branch information
3 people authored Aug 23, 2022
1 parent 4ded0cc commit 26c99f9
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/badge/styled-components.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ function getColorStyles({ $theme, $hierarchy, $color }): {|
const COLOR_STYLES = {
[HIERARCHY.primary]: {
[COLOR.accent]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundAccent,
},
[COLOR.primary]: {
color: $theme.colors.contentInversePrimary,
backgroundColor: $theme.colors.backgroundInversePrimary,
},
[COLOR.positive]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundPositive,
},
[COLOR.negative]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundNegative,
},
[COLOR.warning]: {
color: $theme.colors.primaryA,
color: $theme.colors.contentOnColorInverse,
backgroundColor: $theme.colors.backgroundWarning,
},
},
Expand Down
8 changes: 4 additions & 4 deletions src/badge/styled-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ function getColorStyles({ $theme, $hierarchy, $color }): {
const COLOR_STYLES = {
[HIERARCHY.primary]: {
[COLOR.accent]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundAccent,
},
[COLOR.primary]: {
color: $theme.colors.contentInversePrimary,
backgroundColor: $theme.colors.backgroundInversePrimary,
},
[COLOR.positive]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundPositive,
},
[COLOR.negative]: {
color: $theme.colors.contentInversePrimary,
color: $theme.colors.contentOnColor,
backgroundColor: $theme.colors.backgroundNegative,
},
[COLOR.warning]: {
color: $theme.colors.primaryA,
color: $theme.colors.contentOnColorInverse,
backgroundColor: $theme.colors.backgroundWarning,
},
},
Expand Down
Binary file modified vrt/tests.vrt.js-snapshots/badge--badge-dark-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vrt/tests.vrt.js-snapshots/badge--badge-dark-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified vrt/tests.vrt.js-snapshots/badge--badge-dark-webkit-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 26c99f9

Please sign in to comment.