Skip to content

Commit 170bffe

Browse files
authored
fix: correct border end width (#4719)
1 parent 1af818e commit 170bffe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/SegmentedButtons/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const getSegmentedButtonBorderRadius = ({
6969
return {
7070
borderTopRightRadius: 0,
7171
borderBottomRightRadius: 0,
72-
...(theme.isV3 && { borderRightWidth: 0 }),
72+
...(theme.isV3 && { borderEndWidth: 0 }),
7373
};
7474
} else if (segment === 'last') {
7575
return {
@@ -79,7 +79,7 @@ export const getSegmentedButtonBorderRadius = ({
7979
} else {
8080
return {
8181
borderRadius: 0,
82-
...(theme.isV3 && { borderRightWidth: 0 }),
82+
...(theme.isV3 && { borderEndWidth: 0 }),
8383
};
8484
}
8585
};

src/components/__tests__/__snapshots__/SegmentedButton.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ exports[`renders segmented button 1`] = `
1818
"backgroundColor": "rgba(232, 222, 248, 1)",
1919
"borderBottomRightRadius": 0,
2020
"borderColor": "rgba(121, 116, 126, 1)",
21+
"borderEndWidth": 0,
2122
"borderRadius": 20,
22-
"borderRightWidth": 0,
2323
"borderTopRightRadius": 0,
2424
"borderWidth": 1,
2525
},
@@ -73,8 +73,8 @@ exports[`renders segmented button 1`] = `
7373
},
7474
{
7575
"borderBottomRightRadius": 0,
76+
"borderEndWidth": 0,
7677
"borderRadius": 20,
77-
"borderRightWidth": 0,
7878
"borderTopRightRadius": 0,
7979
},
8080
]

0 commit comments

Comments
 (0)