Remove obsolute form-submit and form-error.

This commit is contained in:
Fredrik Jonsson 2023-07-16 07:40:56 +02:00
commit 31f67a58b0
2 changed files with 4 additions and 6 deletions

View file

@ -7,10 +7,10 @@
'use strict';
const form = document.querySelector('.contact-form');
const button = form.querySelector('.form-submit');
const action = form.getAttribute('data-protect');
const body = document.querySelector('body');
const form = document.querySelector('.contact-form');
const button = form.querySelector('[type=submit]');
const action = form.getAttribute('data-protect');
function activateForm() {
form.setAttribute('action', action);

View file

@ -65,8 +65,6 @@ $colors: (
button-text-hover: $white,
button-disabled: $grey,
form-error: $red,
mark-highlight: $red,
mark-bg: $yellow,