Skip to content

Commit 5770013

Browse files
committed
Changed the comment boxes to single line, expanding to 4 and changed the required title to use a red asterisk.
1 parent 98b2cb7 commit 5770013

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

web-ui/src/components/pulse/Pulse.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
margin-bottom: 1rem;
2121
padding: 1rem;
2222
}
23+
24+
.title-row {
25+
display: flex;
26+
}
2327
}
2428

2529
:root[data-mui-color-scheme='dark'] {

web-ui/src/components/pulse/Pulse.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ const Pulse = ({
4444
title
4545
}) => (
4646
<div className="pulse">
47-
<Typography variant="h6">{title}</Typography>
47+
<div className="title-row">
48+
<Typography variant="h6">{title}</Typography>
49+
{commentRequired && <Typography variant="h6" color="red">*</Typography>}
50+
</div>
4851
<div className="icon-row">
4952
{icons.map((sentiment, index) => (
5053
<Tooltip key={`sentiment-${index}`} title={tooltips[index]} arrow>
@@ -70,7 +73,7 @@ const Pulse = ({
7073
}}
7174
placeholder="Comment"
7275
required={commentRequired}
73-
rows={4}
76+
maxRows={4}
7477
value={comment}
7578
/>
7679
</div>

web-ui/src/pages/PulsePage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,11 @@ const PulsePage = () => {
120120
<Pulse
121121
key="pulse-internal"
122122
comment={internalComment}
123+
commentRequired={true}
123124
score={internalScore}
124125
setComment={setInternalComment}
125126
setScore={setInternalScore}
126-
title="How are you feeling about work today? (*)"
127+
title="How are you feeling about work today?"
127128
/>
128129
<Pulse
129130
key="pulse-external"

0 commit comments

Comments
 (0)