Skip to content

Commit 3eecb54

Browse files
committed
wcag: Add caution icon to duplicate node warning. #285
1 parent 6d336c2 commit 3eecb54

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

app/assets/images/icn_caution.svg

Lines changed: 7 additions & 0 deletions
Loading

app/view/netcreate/components/NCNode.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@
135135
}
136136
.nccomponent .warning {
137137
color: red;
138+
display: flex;
139+
gap: 0.5rem;
140+
margin: 0 0.5rem;
141+
}
142+
.nccomponent .warning {
143+
padding-left: 2px;
138144
}
139145
.nccomponent .help {
140146
font-size: 10px;

app/view/netcreate/components/NCNode.jsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -875,12 +875,20 @@ class NCNode extends UNISYS.Component {
875875
)}
876876
{uShowMatchlist && matchList && (
877877
<div className="matchlist">
878-
{isDuplicate && <div className="warning">{duplicateWarning}</div>}
878+
{isDuplicate && (
879+
<div className="warning">
880+
<img src={`images/icn_caution.svg`} />
881+
<span>{duplicateWarning}</span>
882+
</div>
883+
)}
879884
{matchList}
880885
</div>
881886
)}
882887
{isDuplicate && (
883-
<div className="message warning">{duplicateWarning}</div>
888+
<div className="message warning">
889+
<img src={`images/icn_caution.svg`} />
890+
<span>{duplicateWarning}</span>
891+
</div>
884892
)}
885893
</div>
886894
{/* Special handling for `type` field */}

0 commit comments

Comments
 (0)