Parcourir la source

#6797: Fix incorrect color select label color

checktheroads il y a 4 ans
Parent
commit
49191261a1

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 0 - 8
netbox/project-static/src/select/color.ts

@@ -61,14 +61,6 @@ export function initColorSelect(): void {
           // Set the container's style attributes.
           // Set the container's style attributes.
           instance.slim.singleSelected.container.style.backgroundColor = bg;
           instance.slim.singleSelected.container.style.backgroundColor = bg;
           instance.slim.singleSelected.container.style.color = fg;
           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 {
         } else {
           // If the color cannot be set (i.e., the placeholder), remove any inline styles.
           // If the color cannot be set (i.e., the placeholder), remove any inline styles.
           instance.slim.singleSelected.container.removeAttribute('style');
           instance.slim.singleSelected.container.removeAttribute('style');

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff