Skip to content

Commit

Permalink
fix: white-labeling issue with surface text primary (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyadeorukhkar authored Jul 2, 2024
1 parent a69bdc0 commit 5b3c42d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-spies-provide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/blade": patch
---

fix: white-labeling issue with surface text primary
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ exports[`createTheme should create a theme with the correct brand colors 1`] = `
"onSubtle": "hsla(155, 100%, 21%, 1)",
},
"primary": {
"normal": "hsla(227, 100%, 59%, 1)",
"normal": "hsl(332, 100%, 26%)",
},
"staticBlack": {
"disabled": "hsla(0, 0%, 0%, 0.32)",
Expand Down Expand Up @@ -2268,7 +2268,7 @@ exports[`createTheme should create a theme with the correct brand colors 3`] = `
"onSubtle": "hsla(155, 100%, 21%, 1)",
},
"primary": {
"normal": "hsla(227, 100%, 59%, 1)",
"normal": "hsl(57, 100%, 52%)",
},
"staticBlack": {
"disabled": "hsla(0, 0%, 0%, 0.32)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ exports[`createTheme should create a theme with the correct brand colors 1`] = `
"onSubtle": "hsla(155, 100%, 21%, 1)",
},
"primary": {
"normal": "hsla(227, 100%, 59%, 1)",
"normal": "hsl(332, 100%, 26%)",
},
"staticBlack": {
"disabled": "hsla(0, 0%, 0%, 0.32)",
Expand Down Expand Up @@ -2163,7 +2163,7 @@ exports[`createTheme should create a theme with the correct brand colors 3`] = `
"onSubtle": "hsla(155, 100%, 21%, 1)",
},
"primary": {
"normal": "hsla(227, 100%, 59%, 1)",
"normal": "hsl(57, 100%, 52%)",
},
"staticBlack": {
"disabled": "hsla(0, 0%, 0%, 0.32)",
Expand Down
5 changes: 5 additions & 0 deletions packages/blade/src/tokens/theme/createTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ const getOnLightOverrides = (
normal: brandColors[600],
},
},
text: {
primary: {
normal: brandColors[600],
},
},
},
};

Expand Down

0 comments on commit 5b3c42d

Please sign in to comment.