File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 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' ] {
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments