Fixes #44: Text font dropdown fixed
This commit is contained in:
@@ -9,7 +9,8 @@ template.innerHTML = `
|
|||||||
}
|
}
|
||||||
::slotted(*) {
|
::slotted(*) {
|
||||||
background: #E8E8E8;
|
background: #E8E8E8;
|
||||||
border: 1px solid #B0B0B0;
|
padding:0;
|
||||||
|
/*border: 1px solid #B0B0B0;*/
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<label>Label</label>
|
<label>Label</label>
|
||||||
@@ -81,6 +82,7 @@ export class SeList extends HTMLElement {
|
|||||||
*/
|
*/
|
||||||
connectedCallback () {
|
connectedCallback () {
|
||||||
const currentObj = this;
|
const currentObj = this;
|
||||||
|
this.$dropdown.addEventListener('close', (e) => { this.$dropdown.open(); });
|
||||||
this.$dropdown.addEventListener('selectedindexchange', (e) => {
|
this.$dropdown.addEventListener('selectedindexchange', (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (e?.detail?.selectedIndex !== undefined) {
|
if (e?.detail?.selectedIndex !== undefined) {
|
||||||
|
|||||||
@@ -4,6 +4,9 @@ import 'elix/define/Option.js';
|
|||||||
const template = document.createElement('template');
|
const template = document.createElement('template');
|
||||||
template.innerHTML = `
|
template.innerHTML = `
|
||||||
<style>
|
<style>
|
||||||
|
elix-option{
|
||||||
|
padding:0.25rem 0.125rem !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<elix-option aria-label="option">
|
<elix-option aria-label="option">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|||||||
Reference in New Issue
Block a user