Skip to content

Commit 164b204

Browse files
authored
Merge pull request #349 from citation-file-format/245-preview-validation
add red border around the preview component when the cff file is not …
2 parents bffdb1c + e47a270 commit 164b204

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/Preview.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
</q-btn>
3131
</div>
3232
<textarea
33-
class="cffstr"
33+
v-bind:class="['cffstr', isValidCFF ? '' : 'error']"
3434
readonly="true"
3535
v-bind:value="cffstr"
3636
wrap="hard"
@@ -118,4 +118,9 @@ export default defineComponent({
118118
padding-top: 20px;
119119
text-align: center;
120120
}
121+
.error {
122+
border-color: #C10015 !important;
123+
border-width: 2px !important;
124+
}
125+
121126
</style>

0 commit comments

Comments
 (0)