8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcac42a commit cd880feCopy full SHA for cd880fe
demo/styles.css
@@ -22,6 +22,9 @@
22
23
#output {
24
height: 5em;
25
+
26
+ border-width: 4px;
27
+ transition: border-color 0.6s ease-out;
28
}
29
30
@media (min-width: 992px) {
src/demo.ts
@@ -22,8 +22,18 @@ function generatePattern(
return pattern;
+let clearSuccessIndicatorHandle: number;
function displayPattern(pattern: string) {
$output.value = pattern;
+ // Temporarily style the output box as valid
+ $output.classList.add('is-valid');
31
32
+ clearTimeout(clearSuccessIndicatorHandle);
33
+ clearSuccessIndicatorHandle = setTimeout(
34
+ () => $output.classList.remove('is-valid'),
35
+ 1000
36
+ );
37
38
39
function onClickGenerate() {
0 commit comments