Fixes #44: Text font dropdown fixed

master
agriyadev5 2021-01-08 21:15:16 +05:30
parent 2757829dad
commit f89d348282
2 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,8 @@ template.innerHTML = `
}
::slotted(*) {
background: #E8E8E8;
border: 1px solid #B0B0B0;
padding:0;
/*border: 1px solid #B0B0B0;*/
}
</style>
<label>Label</label>
@ -81,6 +82,7 @@ export class SeList extends HTMLElement {
*/
connectedCallback () {
const currentObj = this;
this.$dropdown.addEventListener('close', (e) => { this.$dropdown.open(); });
this.$dropdown.addEventListener('selectedindexchange', (e) => {
e.preventDefault();
if (e?.detail?.selectedIndex !== undefined) {

View File

@ -4,6 +4,9 @@ import 'elix/define/Option.js';
const template = document.createElement('template');
template.innerHTML = `
<style>
elix-option{
padding:0.25rem 0.125rem !important;
}
</style>
<elix-option aria-label="option">
<slot></slot>