Select styling improvements

- support for Shoelace's size property
- relative sizing for EmailTag's add icon height
This commit is contained in:
nathan 2022-06-24 14:12:04 -06:00
parent 9ffc7decf2
commit 0f5cb9f9d3
2 changed files with 6 additions and 1 deletions

View File

@ -93,6 +93,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
}
/* Maximum height + scrollbar on tags (+ other styling) */
.select__tags {
margin-left: 0px;
max-height: 5em;
overflow-y: auto;
@ -437,6 +438,10 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
tag.value = item.value;
tag.textContent = this.getItemLabel(item);
tag.class = item.classList.value + " search_tag";
if(this.size)
{
tag.size = this.size;
}
if(this.readonly)
{
tag.removable = false;

View File

@ -31,7 +31,7 @@ export class Et2EmailTag extends Et2Tag
.tag__prefix {
display: none;
height: 16px;
height: 80%;
background-color: white;
background-repeat: no-repeat;