mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
#6797: Fix incorrect color select label color
This commit is contained in:
parent
0479d5a02a
commit
49191261a1
BIN
netbox/project-static/dist/netbox.js
vendored
BIN
netbox/project-static/dist/netbox.js
vendored
Binary file not shown.
BIN
netbox/project-static/dist/netbox.js.map
vendored
BIN
netbox/project-static/dist/netbox.js.map
vendored
Binary file not shown.
@ -61,14 +61,6 @@ export function initColorSelect(): void {
|
||||
// Set the container's style attributes.
|
||||
instance.slim.singleSelected.container.style.backgroundColor = bg;
|
||||
instance.slim.singleSelected.container.style.color = fg;
|
||||
|
||||
// Find this element's label.
|
||||
const label = document.querySelector<HTMLLabelElement>(`label[for=${select.id}]`);
|
||||
|
||||
if (label !== null) {
|
||||
// Set the field's label color to match (Bootstrap sets the opacity to 0.65 as well).
|
||||
label.style.color = fg;
|
||||
}
|
||||
} else {
|
||||
// If the color cannot be set (i.e., the placeholder), remove any inline styles.
|
||||
instance.slim.singleSelected.container.removeAttribute('style');
|
||||
|
Loading…
Reference in New Issue
Block a user