<div class="registration-error registration-server-error registration_hide" role="alert">
<span class="registration-error-message">sitecore api error</span>
</div>
No notes defined.
/* No context defined. */
/* eslint-disable no-param-reassign */
export function showServerError(parentElement, errorMessage) {
parentElement
.querySelector('.registration-server-error')
.classList.remove('registration_hide');
parentElement.querySelector(
'.registration-server-error .registration-error-message'
).innerText = errorMessage;
}
export function hideServerError(parentElement) {
parentElement
.querySelector('.registration-server-error')
.classList.add('registration_hide');
}
.registration-server-error.registration-error {
border-radius: 2px;
margin: 10px 0 0 0;
.registration-error-message {
font-size: 16px;
font-weight: 400;
font-family: $registration-font;
color: $white;
border-radius: 2px;
}
}
<div class="registration-error registration-server-error registration_hide" role="alert">
<span class="registration-error-message">sitecore api error</span>
</div>