Mark the active Text or Image tab.
The active tab stays solid green, and the other tab is pale with green text. A tab whose field failed validation now shows red text.
This commit is contained in:
@@ -19,6 +19,7 @@ const STORY_FORM = `
|
||||
<label for="author">Author:</label><input id="author" name="author">
|
||||
<label for="email">Email address:</label><input id="email" name="email">
|
||||
<label for="story">Story:</label>
|
||||
<span id="texttab" class="tab active">Text:</span><span id="uploadtab" class="tab">Image:</span>
|
||||
<div id="textparent"><textarea id="story" name="story"></textarea></div>
|
||||
<div id="uploadparent" style="display: none;"><input type="file" id="upload" name="upload"></div>
|
||||
<span id="wordcounter" class="counter" style="display: none;">0 words</span>
|
||||
|
||||
Reference in New Issue
Block a user