From 49191261a16cc843168c88824ff0a2cc8b8b92de Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sat, 24 Jul 2021 17:13:02 -0700 Subject: [PATCH] #6797: Fix incorrect color select label color --- netbox/project-static/dist/netbox.js | Bin 309532 -> 309453 bytes netbox/project-static/dist/netbox.js.map | Bin 1106591 -> 1106197 bytes netbox/project-static/src/select/color.ts | 8 -------- 3 files changed, 8 deletions(-) diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 8495c2e19a0d282135055ee72a4292661bb21731..c7e77236cedc910b6645f33e03a93f1d2b3021f2 100644 GIT binary patch delta 23 fcmbR9N$BiHp@tU57N!>FEi8ANw(B&rd@uz7fb$9| delta 70 zcmX^6QE1L5p@tU57N!>FEi8AN*sXI?OB51qr#reZiBEsu!XheTov3JQn^&5Xqo$^j as8?K4nUkuQoS&0lWLvDc{caP>2U7r^IvL&o diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index 658249345c2ad8976681d5a673ec5928262cb5cd..adeb983d555bb6de481339ff3d4309531e32825d 100644 GIT binary patch delta 93 zcmV-j0HXh&#Y2_CLx6+w#ta}Tw1 z5E{G%O+iO;M3>vV5FP?KL$~|95HJA}b3!viEJZ;7N!>F7M2#)7Pc1l7LFFq7OpMaM*sC=@)Y1eUths3GcQG#R}!AIXRk8H^AHrcGq;d|J*XufAetjP5&doE!^(+pBspI zfS4DE`L_H0=l{3c&(+br$VJE9(a{$~1nLAkItJ?`J36L2>m)ilChE94I{NGQJGvUX z>Nq+&dg^#OI)>`_I=V(d^!S1_0*OGN8qX4^>4CciwBnJpxH80E_i`MF0Q* diff --git a/netbox/project-static/src/select/color.ts b/netbox/project-static/src/select/color.ts index 506b2a195..9a699c47b 100644 --- a/netbox/project-static/src/select/color.ts +++ b/netbox/project-static/src/select/color.ts @@ -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(`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');