select with images
parent
2e588c063e
commit
4dd6f6ed8c
|
@ -3676,7 +3676,7 @@ img {
|
|||
background-color: #ededed;
|
||||
}
|
||||
|
||||
.shx-custom-enhanced-dropdown-dropbtn {
|
||||
.shx-custom-enhanced-dropdown-button {
|
||||
width: 100%;
|
||||
padding: 4px 14px 4px 24px;
|
||||
font-size: 16px;
|
||||
|
@ -3686,7 +3686,7 @@ img {
|
|||
color: rgb(var(--color-foreground));
|
||||
}
|
||||
|
||||
.shx-custom-enhanced-dropdown-dropbtn:focus {
|
||||
.shx-custom-enhanced-dropdown-button:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<button class="shx-custom-enhanced-dropdown-dropbtn" id="shx-custom-enhanced-dropdown-variant-select-button">
|
||||
<button class="shx-custom-enhanced-dropdown-button" id="shx-custom-enhanced-dropdown-variant-select-button">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; pointer-events: none">
|
||||
<span id="shx-custom-enhanced-dropdown-variant-select-selected-value">{{ option.selected_value }}</span>
|
||||
|
||||
|
|
|
@ -621,7 +621,7 @@
|
|||
function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options, section_id) {
|
||||
let html = `
|
||||
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
|
||||
<div class="field custom">
|
||||
<div class="field custom${isInputShxFont && ' shx-custom-enhanced-dropdown-hide-dummy-select'}">
|
||||
<select id="${inputID}" form="product-form-${section_id}" name="properties[${inputName}]" class="field__input shx-custom-enhanced-dropdown-font-hide-dummy-select" style="height: 40px" onchange="document.querySelector('shx-input-forms').renderView(500)">
|
||||
`;
|
||||
|
||||
|
@ -631,7 +631,7 @@
|
|||
if (isInputShxFont) {
|
||||
customDropdownHtml += `
|
||||
<div class="shx-custom-enhanced-dropdown field custom">
|
||||
<button class="shx-custom-enhanced-dropdown-dropbtn" onclick="toggleCustomEnhancedDropdownFont()">
|
||||
<button class="shx-custom-enhanced-dropdown-button" onclick="toggleCustomEnhancedDropdownFont()">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; pointer-events: none">
|
||||
<span id="shx-custom-enhanced-dropdown-font-select-selected-value">lade...</span>
|
||||
|
||||
|
|
Loading…
Reference in New Issue