Skip to content

Commit 11873a7

Browse files
committed
Fix #7203. Help indicate that author should be an email. Add error styling.
1 parent ccccbe2 commit 11873a7

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/ifctester/webapp/src/css/app.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,11 @@ html, body {
598598
border-color: #008242;
599599
box-shadow: 0 0 0 0.2rem #00824254;
600600
}
601+
.form-input:invalid {
602+
outline: 1px;
603+
border-color: #f44336;
604+
box-shadow: 0 0 0 0.2rem #f4433654;
605+
}
601606
.form-input::placeholder {
602607
color: #888888;
603608
}

src/ifctester/webapp/src/pages/Home/IdsMetadataEditor.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<input class="form-input" type="text" bind:value={() => getProp("title"), (v) => setProp("title", v)} placeholder="Enter IDS title">
2323
</div>
2424
<div class="form-group">
25-
<label>Author</label>
25+
<label>Author Email</label>
2626
<input class="form-input" type="email" bind:value={() => getProp("author"), (v) => setProp("author", v)} placeholder="Enter author">
2727
</div>
2828
<div class="form-group">
@@ -50,4 +50,4 @@
5050
<input class="form-input" type="text" bind:value={() => getProp("copyright"), (v) => setProp("copyright", v)} placeholder="Enter copyright">
5151
</div>
5252
</div>
53-
</div>
53+
</div>

0 commit comments

Comments
 (0)