From 5d164c4bb1236734619ef8d66af6ce20b4c57bd6 Mon Sep 17 00:00:00 2001 From: Narin Ratana Date: Mon, 5 Feb 2024 12:52:09 -0800 Subject: [PATCH] Bump tokens version to 0.5.0. Fix Dark Mode primary presesd color --- packages/components/package.json | 2 +- packages/components/src/components/Button/Button.tsx | 2 +- yarn.lock | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/components/package.json b/packages/components/package.json index 8aa8b901..c49aaf8d 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -39,7 +39,7 @@ "homepage": "https://department-of-veterans-affairs.github.io/va-mobile-library", "dependencies": { "@department-of-veterans-affairs/mobile-assets": "0.1.1", - "@department-of-veterans-affairs/mobile-tokens": "0.4.0", + "@department-of-veterans-affairs/mobile-tokens": "0.5.0", "@os-team/i18next-react-native-language-detector": "^1.0.28", "i18next": "^23.4.3", "react-i18next": "^13.0.3", diff --git a/packages/components/src/components/Button/Button.tsx b/packages/components/src/components/Button/Button.tsx index d689ab7c..212c2a26 100644 --- a/packages/components/src/components/Button/Button.tsx +++ b/packages/components/src/components/Button/Button.tsx @@ -131,7 +131,7 @@ export const Button: React.FC = ({ if (isDarkMode) { bgColor = Colors.uswdsBlueVivid30 - bgColorPressed = Colors.PrimaryAltLightest + bgColorPressed = Colors.primaryAltLightest textColor = Colors.black textColorPressed = Colors.black } diff --git a/yarn.lock b/yarn.lock index 64c6d187..2a3b386c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2906,7 +2906,7 @@ __metadata: "@babel/preset-env": "npm:^7.22.15" "@babel/preset-typescript": "npm:^7.22.15" "@department-of-veterans-affairs/mobile-assets": "npm:0.1.1" - "@department-of-veterans-affairs/mobile-tokens": "npm:0.4.0" + "@department-of-veterans-affairs/mobile-tokens": "npm:0.5.0" "@expo/webpack-config": "npm:^19.0.0" "@os-team/i18next-react-native-language-detector": "npm:^1.0.28" "@react-native-async-storage/async-storage": "npm:1.18.2" @@ -2972,10 +2972,10 @@ __metadata: languageName: unknown linkType: soft -"@department-of-veterans-affairs/mobile-tokens@npm:0.4.0": - version: 0.4.0 - resolution: "@department-of-veterans-affairs/mobile-tokens@npm:0.4.0" - checksum: 8cb1f9ecb9f8e653f486208fc0ea5e1064f5b547aad04bd1314c250f434e3803536db98b3d03301aeae2a445b097a3146a90eb8bfbdfb02059f0ee95655c4bcf +"@department-of-veterans-affairs/mobile-tokens@npm:0.5.0": + version: 0.5.0 + resolution: "@department-of-veterans-affairs/mobile-tokens@npm:0.5.0" + checksum: 55544b15a91ba5e089ca2d6bbf50f807a85a61fa29ba03fa86883d976ebbad65b83a10e8b9ef4ade936591179140e9a1e4f46672d83e3d640804736f89ea4b3a languageName: node linkType: hard