This commit is contained in:
sairaj mote 2023-10-03 02:25:53 +05:30
parent cae493d224
commit be94cf59e9
4 changed files with 4 additions and 8 deletions

View File

@ -524,7 +524,7 @@ customElements.define('sm-input',
this.label.classList.remove('hidden');
}
this.setAttribute('role', 'textbox');
if (smCompConfig && smCompConfig['sm-input']) {
if (('smCompConfig' in window) && smCompConfig['sm-input']) {
const config = smCompConfig['sm-input'].find(config => this.matches(config.selector))
this.customValidation = config?.customValidation;
}

File diff suppressed because one or more lines are too long

View File

@ -57,17 +57,13 @@ smNotifications.innerHTML = `
height: 0.2rem;
width: 100%;
background-color: var(--accent-color, teal);
transform: scaleX(0);
animation: loading var(--timeout, 5000ms) linear forwards;
transform-origin: left;
}
@keyframes loading{
0%{
to{
transform: scaleX(0);
}
100%{
transform: scaleX(1);
}
}
.icon-container:not(:empty){
margin-right: 0.5rem;

File diff suppressed because one or more lines are too long