Skip to content

Commit

Permalink
Changed the comment boxes to single line, expanding to 4 and changed …
Browse files Browse the repository at this point in the history
…the required title to use a red asterisk.
  • Loading branch information
ocielliottc committed Jan 7, 2025
1 parent 98b2cb7 commit 5770013
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions web-ui/src/components/pulse/Pulse.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
margin-bottom: 1rem;
padding: 1rem;
}

.title-row {
display: flex;
}
}

:root[data-mui-color-scheme='dark'] {
Expand Down
7 changes: 5 additions & 2 deletions web-ui/src/components/pulse/Pulse.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ const Pulse = ({
title
}) => (
<div className="pulse">
<Typography variant="h6">{title}</Typography>
<div className="title-row">
<Typography variant="h6">{title}</Typography>
{commentRequired && <Typography variant="h6" color="red">*</Typography>}
</div>
<div className="icon-row">
{icons.map((sentiment, index) => (
<Tooltip key={`sentiment-${index}`} title={tooltips[index]} arrow>
Expand All @@ -70,7 +73,7 @@ const Pulse = ({
}}
placeholder="Comment"
required={commentRequired}
rows={4}
maxRows={4}
value={comment}
/>
</div>
Expand Down
3 changes: 2 additions & 1 deletion web-ui/src/pages/PulsePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ const PulsePage = () => {
<Pulse
key="pulse-internal"
comment={internalComment}
commentRequired={true}
score={internalScore}
setComment={setInternalComment}
setScore={setInternalScore}
title="How are you feeling about work today? (*)"
title="How are you feeling about work today?"
/>
<Pulse
key="pulse-external"
Expand Down

0 comments on commit 5770013

Please sign in to comment.