Skip to content

Commit 9d2df79

Browse files
Merge pull request #934 from gympass/ds-1365
feat:(DS-1365) Update disabled color switch
2 parents 945440d + 764f4c7 commit 9d2df79

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/yoga/src/Checkbox/CheckboxSwitch.theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const CheckboxSwitch = ({
1919
backgroundColor: colors.primary,
2020
},
2121
disabled: {
22-
backgroundColor: colors.elements.backgroundAndDisabled,
22+
backgroundColor: colors.steady,
2323
},
2424
},
2525
thumb: {

packages/yoga/src/Checkbox/native/__snapshots__/Switch.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ exports[`<Checkbox /> <Checkbox.Switch /> Snapshots should match snapshot with d
182182
disabled={true}
183183
style={
184184
{
185-
"backgroundColor": "#F5F5FA",
185+
"backgroundColor": "#8F8F8F",
186186
"borderRadius": 9999,
187187
"display": "flex",
188188
"height": 24,
@@ -257,7 +257,7 @@ exports[`<Checkbox /> <Checkbox.Switch /> Snapshots should match snapshot with d
257257
disabled={true}
258258
style={
259259
{
260-
"backgroundColor": "#F5F5FA",
260+
"backgroundColor": "#8F8F8F",
261261
"borderRadius": 9999,
262262
"display": "flex",
263263
"height": 24,

packages/yoga/src/Checkbox/web/__snapshots__/Switch.test.jsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ exports[`<Checkbox /> <Checkbox.Switch /> Snapshots should match snapshot with d
223223
transition-property: background-color;
224224
-webkit-transition-duration: 300ms;
225225
transition-duration: 300ms;
226-
background-color: #F5F5FA;
226+
background-color: #8F8F8F;
227227
cursor: not-allowed;
228228
}
229229
@@ -334,7 +334,7 @@ exports[`<Checkbox /> <Checkbox.Switch /> Snapshots should match snapshot with d
334334
transition-property: background-color;
335335
-webkit-transition-duration: 300ms;
336336
transition-duration: 300ms;
337-
background-color: #F5F5FA;
337+
background-color: #8F8F8F;
338338
cursor: not-allowed;
339339
}
340340

0 commit comments

Comments
 (0)