Skip to content

Commit ba260a4

Browse files
authored
feat(feedback): Align secondary buttons with the web (#4572)
* Align secondary buttons with the web * Update snapshots
1 parent ee3aa70 commit ba260a4

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

packages/core/src/js/feedback/FeedbackWidget.styles.ts

+9-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ const defaultStyles: FeedbackWidgetStyles = {
4242
color: FOREGROUND_COLOR,
4343
},
4444
screenshotButton: {
45-
backgroundColor: '#eee',
45+
backgroundColor: BACKGROUND_COLOR,
4646
padding: 15,
4747
borderRadius: 5,
4848
alignItems: 'center',
4949
flex: 1,
50+
borderWidth: 1,
51+
borderColor: BORDER_COLOR,
5052
},
5153
screenshotContainer: {
5254
flexDirection: 'row',
@@ -61,7 +63,7 @@ const defaultStyles: FeedbackWidgetStyles = {
6163
marginRight: 10,
6264
},
6365
screenshotText: {
64-
color: '#333',
66+
color: FOREGROUND_COLOR,
6567
fontSize: 16,
6668
},
6769
submitButton: {
@@ -76,8 +78,12 @@ const defaultStyles: FeedbackWidgetStyles = {
7678
fontSize: 18,
7779
},
7880
cancelButton: {
79-
paddingVertical: 15,
81+
backgroundColor: BACKGROUND_COLOR,
82+
padding: 15,
83+
borderRadius: 5,
8084
alignItems: 'center',
85+
borderWidth: 1,
86+
borderColor: BORDER_COLOR,
8187
},
8288
cancelText: {
8389
color: FOREGROUND_COLOR,

packages/core/test/feedback/__snapshots__/FeedbackWidget.test.tsx.snap

+28-8
Original file line numberDiff line numberDiff line change
@@ -761,8 +761,12 @@ exports[`FeedbackWidget matches the snapshot with custom texts 1`] = `
761761
style={
762762
{
763763
"alignItems": "center",
764+
"backgroundColor": "#ffffff",
765+
"borderColor": "rgba(41, 35, 47, 0.13)",
766+
"borderRadius": 5,
767+
"borderWidth": 1,
764768
"opacity": 1,
765-
"paddingVertical": 15,
769+
"padding": 15,
766770
}
767771
}
768772
>
@@ -980,8 +984,10 @@ exports[`FeedbackWidget matches the snapshot with custom texts and screenshot bu
980984
style={
981985
{
982986
"alignItems": "center",
983-
"backgroundColor": "#eee",
987+
"backgroundColor": "#ffffff",
988+
"borderColor": "rgba(41, 35, 47, 0.13)",
984989
"borderRadius": 5,
990+
"borderWidth": 1,
985991
"flex": 1,
986992
"opacity": 1,
987993
"padding": 15,
@@ -991,7 +997,7 @@ exports[`FeedbackWidget matches the snapshot with custom texts and screenshot bu
991997
<Text
992998
style={
993999
{
994-
"color": "#333",
1000+
"color": "#2b2233",
9951001
"fontSize": 16,
9961002
}
9971003
}
@@ -1081,8 +1087,12 @@ exports[`FeedbackWidget matches the snapshot with custom texts and screenshot bu
10811087
style={
10821088
{
10831089
"alignItems": "center",
1090+
"backgroundColor": "#ffffff",
1091+
"borderColor": "rgba(41, 35, 47, 0.13)",
1092+
"borderRadius": 5,
1093+
"borderWidth": 1,
10841094
"opacity": 1,
1085-
"paddingVertical": 15,
1095+
"padding": 15,
10861096
}
10871097
}
10881098
>
@@ -1340,8 +1350,12 @@ exports[`FeedbackWidget matches the snapshot with default configuration 1`] = `
13401350
style={
13411351
{
13421352
"alignItems": "center",
1353+
"backgroundColor": "#ffffff",
1354+
"borderColor": "rgba(41, 35, 47, 0.13)",
1355+
"borderRadius": 5,
1356+
"borderWidth": 1,
13431357
"opacity": 1,
1344-
"paddingVertical": 15,
1358+
"padding": 15,
13451359
}
13461360
}
13471361
>
@@ -1559,8 +1573,10 @@ exports[`FeedbackWidget matches the snapshot with default configuration and scre
15591573
style={
15601574
{
15611575
"alignItems": "center",
1562-
"backgroundColor": "#eee",
1576+
"backgroundColor": "#ffffff",
1577+
"borderColor": "rgba(41, 35, 47, 0.13)",
15631578
"borderRadius": 5,
1579+
"borderWidth": 1,
15641580
"flex": 1,
15651581
"opacity": 1,
15661582
"padding": 15,
@@ -1570,7 +1586,7 @@ exports[`FeedbackWidget matches the snapshot with default configuration and scre
15701586
<Text
15711587
style={
15721588
{
1573-
"color": "#333",
1589+
"color": "#2b2233",
15741590
"fontSize": 16,
15751591
}
15761592
}
@@ -1660,8 +1676,12 @@ exports[`FeedbackWidget matches the snapshot with default configuration and scre
16601676
style={
16611677
{
16621678
"alignItems": "center",
1679+
"backgroundColor": "#ffffff",
1680+
"borderColor": "rgba(41, 35, 47, 0.13)",
1681+
"borderRadius": 5,
1682+
"borderWidth": 1,
16631683
"opacity": 1,
1664-
"paddingVertical": 15,
1684+
"padding": 15,
16651685
}
16661686
}
16671687
>

0 commit comments

Comments
 (0)