Skip to content

Commit 19c7982

Browse files
authored
Bug fix - Bump android design tokens (#2450)
### Platforms Impacted - [ ] iOS - [ ] macOS - [ ] win32 (Office) - [ ] windows - [x] android ### Description of changes Integrated a new version for tokens with updated color values. ### Verification Manually tested. | Before | After | |----------------------------------------------|--------------------------------------------| | Screenshot or description before this change | Screenshot or description with this change | ### Pull request checklist This PR has considered (when applicable): - [ ] Automated Tests - [ ] Documentation and examples - [ ] Keyboard Accessibility - [ ] Voiceover - [ ] Internationalization and Right-to-left Layouts
1 parent 15c23c9 commit 19c7982

File tree

7 files changed

+46
-25
lines changed

7 files changed

+46
-25
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Update android token values.",
4+
"packageName": "@fluentui-react-native/android-theme",
5+
"email": "email not defined",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Update token values for android.",
4+
"packageName": "@fluentui-react-native/switch",
5+
"email": "email not defined",
6+
"dependentChangeType": "patch"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "Update android token values.",
4+
"packageName": "@fluentui-react-native/theme-tokens",
5+
"email": "email not defined",
6+
"dependentChangeType": "patch"
7+
}

packages/experimental/Switch/src/__tests__/__snapshots__/Switch.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ exports[`Switch Default 1`] = `
6767
style={
6868
Object {
6969
"alignItems": "center",
70-
"backgroundColor": "#3d3d3d",
70+
"backgroundColor": "#f0f0f0",
7171
"borderRadius": 100,
7272
"flexDirection": "row",
7373
"height": 32,
@@ -165,7 +165,7 @@ exports[`Switch Disabled 1`] = `
165165
style={
166166
Object {
167167
"alignItems": "center",
168-
"backgroundColor": "#3d3d3d",
168+
"backgroundColor": "#f0f0f0",
169169
"borderRadius": 100,
170170
"flexDirection": "row",
171171
"height": 32,

packages/theming/android-theme/src/__tests__/__snapshots__/android-theme.test.ts.snap

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ Object {
183183
"neutralBackground4Hover": undefined,
184184
"neutralBackground4Pressed": "#616161",
185185
"neutralBackground4Selected": "#575757",
186-
"neutralBackground5": "#ebebeb",
186+
"neutralBackground5": "#3d3d3d",
187187
"neutralBackground5Hover": undefined,
188-
"neutralBackground5Pressed": "#d1d1d1",
189-
"neutralBackground5Selected": "#dbdbdb",
188+
"neutralBackground5Pressed": "#6b6b6b",
189+
"neutralBackground5Selected": "#616161",
190190
"neutralBackground6": "#5c5c5c",
191191
"neutralBackgroundDisabled": "#525252",
192192
"neutralBackgroundInverted": "#575757",
@@ -795,10 +795,10 @@ Object {
795795
"neutralBackground4Hover": undefined,
796796
"neutralBackground4Pressed": "#616161",
797797
"neutralBackground4Selected": "#575757",
798-
"neutralBackground5": "#ebebeb",
798+
"neutralBackground5": "#3d3d3d",
799799
"neutralBackground5Hover": undefined,
800-
"neutralBackground5Pressed": "#d1d1d1",
801-
"neutralBackground5Selected": "#dbdbdb",
800+
"neutralBackground5Pressed": "#6b6b6b",
801+
"neutralBackground5Selected": "#616161",
802802
"neutralBackground6": "#5c5c5c",
803803
"neutralBackgroundDisabled": "#525252",
804804
"neutralBackgroundInverted": "#575757",
@@ -1407,10 +1407,10 @@ Object {
14071407
"neutralBackground4Hover": undefined,
14081408
"neutralBackground4Pressed": "#616161",
14091409
"neutralBackground4Selected": "#575757",
1410-
"neutralBackground5": "#ebebeb",
1410+
"neutralBackground5": "#3d3d3d",
14111411
"neutralBackground5Hover": undefined,
1412-
"neutralBackground5Pressed": "#d1d1d1",
1413-
"neutralBackground5Selected": "#dbdbdb",
1412+
"neutralBackground5Pressed": "#6b6b6b",
1413+
"neutralBackground5Selected": "#616161",
14141414
"neutralBackground6": "#5c5c5c",
14151415
"neutralBackgroundDisabled": "#525252",
14161416
"neutralBackgroundInverted": "#575757",
@@ -2019,10 +2019,10 @@ Object {
20192019
"neutralBackground4Hover": undefined,
20202020
"neutralBackground4Pressed": "#dbdbdb",
20212021
"neutralBackground4Selected": "#e6e6e6",
2022-
"neutralBackground5": "#3d3d3d",
2022+
"neutralBackground5": "#f0f0f0",
20232023
"neutralBackground5Hover": undefined,
2024-
"neutralBackground5Pressed": "#6b6b6b",
2025-
"neutralBackground5Selected": "#616161",
2024+
"neutralBackground5Pressed": "#d1d1d1",
2025+
"neutralBackground5Selected": "#dbdbdb",
20262026
"neutralBackground6": "#d1d1d1",
20272027
"neutralBackgroundDisabled": "#e0e0e0",
20282028
"neutralBackgroundInverted": "#242424",
@@ -2631,10 +2631,10 @@ Object {
26312631
"neutralBackground4Hover": undefined,
26322632
"neutralBackground4Pressed": "#616161",
26332633
"neutralBackground4Selected": "#575757",
2634-
"neutralBackground5": "#ebebeb",
2634+
"neutralBackground5": "#3d3d3d",
26352635
"neutralBackground5Hover": undefined,
2636-
"neutralBackground5Pressed": "#d1d1d1",
2637-
"neutralBackground5Selected": "#dbdbdb",
2636+
"neutralBackground5Pressed": "#6b6b6b",
2637+
"neutralBackground5Selected": "#616161",
26382638
"neutralBackground6": "#5c5c5c",
26392639
"neutralBackgroundDisabled": "#525252",
26402640
"neutralBackgroundInverted": "#575757",
@@ -3243,10 +3243,10 @@ Object {
32433243
"neutralBackground4Hover": undefined,
32443244
"neutralBackground4Pressed": "#dbdbdb",
32453245
"neutralBackground4Selected": "#e6e6e6",
3246-
"neutralBackground5": "#3d3d3d",
3246+
"neutralBackground5": "#f0f0f0",
32473247
"neutralBackground5Hover": undefined,
3248-
"neutralBackground5Pressed": "#6b6b6b",
3249-
"neutralBackground5Selected": "#616161",
3248+
"neutralBackground5Pressed": "#d1d1d1",
3249+
"neutralBackground5Selected": "#dbdbdb",
32503250
"neutralBackground6": "#d1d1d1",
32513251
"neutralBackgroundDisabled": "#e0e0e0",
32523252
"neutralBackgroundInverted": "#242424",

packages/theming/theme-tokens/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"author": "",
3232
"license": "MIT",
3333
"dependencies": {
34-
"@fluentui-react-native/design-tokens-android": "^0.36.0",
34+
"@fluentui-react-native/design-tokens-android": "^0.37.0",
3535
"@fluentui-react-native/design-tokens-ios": "^0.36.0",
3636
"@fluentui-react-native/design-tokens-win32": "^0.36.0",
3737
"@fluentui-react-native/design-tokens-windows": "^0.36.0",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,10 +1440,10 @@
14401440
minimatch "^3.1.2"
14411441
strip-json-comments "^3.1.1"
14421442

1443-
"@fluentui-react-native/design-tokens-android@^0.36.0":
1444-
version "0.36.0"
1445-
resolved "https://registry.yarnpkg.com/@fluentui-react-native/design-tokens-android/-/design-tokens-android-0.36.0.tgz#854d511c4bb8916633921219987968bdcceb12b1"
1446-
integrity sha512-lvWKGRevVrcALew2PjmcCDdmFfGw1stGm39hZJJUlGK63okEaDwZ7jR40YSVVbP0YEqrVu5xhD2MhLqpeJQTCw==
1443+
"@fluentui-react-native/design-tokens-android@^0.37.0":
1444+
version "0.37.0"
1445+
resolved "https://registry.yarnpkg.com/@fluentui-react-native/design-tokens-android/-/design-tokens-android-0.37.0.tgz#c1479a10bb10a939db8effac98988ff2859110a9"
1446+
integrity sha512-qh1i195poQu/Zvabk/VsLZw+U1zwN5WQn9JAJgk1ZCWLwKfc24HRx+zpnSBdbWcOSI5b6kEDffwq8nPKUAN3QQ==
14471447

14481448
"@fluentui-react-native/design-tokens-ios@^0.36.0":
14491449
version "0.36.0"

0 commit comments

Comments
 (0)