Skip to content

Commit 6b683c0

Browse files
Merge pull request #2126 from hpe-dev-incubator/Color_change_feedback_widget
Color change feedback widget
2 parents 97526c8 + db53ab1 commit 6b683c0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/components/Feedback/FeedbackBody/FeedbackBody.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const FeedbackBody = ({
151151

152152
<Button
153153
label="Close"
154-
style={{ marginTop: 30 }}
154+
style={{ marginTop: 30,backgroundColor:'#01A982' }}
155155
onClick={() => {
156156
successClose();
157157
}}
@@ -166,7 +166,7 @@ const FeedbackBody = ({
166166
</div>
167167
<Button
168168
label="Close"
169-
style={{ marginTop: 30 }}
169+
style={{ marginTop: 30,backgroundColor:'#01A982' }}
170170
onClick={() => {
171171
successClose();
172172
}}
@@ -207,16 +207,17 @@ const FeedbackBody = ({
207207
)}
208208
<Button
209209
label="Next"
210-
style={{ marginTop: 20 }}
210+
style={ feedbackFromik.errors.value || feedbackFromik.values.value==='' || feedbackFromik.values.value===' '?
211+
{ marginTop: 20,backgroundColor:'white' }:
212+
{ marginTop: 20,backgroundColor:'#01A982' }}
211213
icon={<FormNextLink />}
212214
onClick={() => setEmailDis(true)}
213215
alignSelf="end"
214216
reverse
215217
primary
216218
disabled={
217219
feedbackFromik.values.value === '' ||
218-
feedbackFromik.errors.value
219-
}
220+
feedbackFromik.errors.value || feedbackFromik.values.value===' '}
220221
/>
221222
</>
222223
) : (
@@ -242,13 +243,15 @@ const FeedbackBody = ({
242243
)}
243244
<Button
244245
label="Send Feedback"
245-
style={{ marginTop: 20 }}
246+
style={ feedbackFromik.errors.email || feedbackFromik.values.email==='' ?
247+
{ marginTop: 20,backgroundColor:'#fffa' }:
248+
{ marginTop: 20,backgroundColor:'#01A982' }}
246249
onClick={() => {
247250
feedbackFromik.submitForm();
248251
}}
249252
alignSelf="end"
250253
primary
251-
disabled={!!feedbackFromik.errors.email}
254+
disabled={!!feedbackFromik.errors.email || feedbackFromik.values.email===''}
252255
/>
253256
</>
254257
)}

src/components/Feedback/FeedbackButton/FeedbackButton.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const defaultButtonStyles = {
1313
bottom: 0,
1414
width: 'auto',
1515
zIndex: 10,
16+
backgroundColor:'#01A982',
1617
};
1718

1819
const FeedBackButton = (props) => {

0 commit comments

Comments
 (0)