Skip to content

Commit

Permalink
feat: highlight importer URL field when it is fulfilled
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanboniface committed Dec 2, 2024
1 parent f6f42f5 commit 0ab194e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions umap/static/umap/css/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -599,3 +599,6 @@ input[type=hidden].blur + [type="button"] {
border: 1px solid #202425;
border-radius: initial;
}
input.highlightable:not(:placeholder-shown) {
border: 1px solid var(--color-brightCyan);
}
2 changes: 1 addition & 1 deletion umap/static/umap/js/modules/importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const TEMPLATE = `
<fieldset class="formbox">
<legend class="counter">${translate('Choose data')}</legend>
<input type="file" multiple autofocus onchange />
<input type="url" placeholder="${translate('Provide an URL here')}" onchange />
<input class="highlightable" type="url" placeholder="${translate('Provide an URL here')}" onchange />
<textarea onchange placeholder="${translate('Paste your data here')}"></textarea>
<div class="importers" hidden>
<h4>${translate('Import helpers:')}</h4>
Expand Down

0 comments on commit 0ab194e

Please sign in to comment.