소스 검색

#6797: Fix incorrect color select label color

checktheroads 4 년 전
부모
커밋
49191261a1
3개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 0
      netbox/project-static/dist/netbox.js
  2. 0 0
      netbox/project-static/dist/netbox.js.map
  3. 0 8
      netbox/project-static/src/select/color.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
netbox/project-static/dist/netbox.js


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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.
           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');

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.