浏览代码

Show close icon on hover (#2034)

* show close icon on hover

* style changes to avoid repeating styles
Robert Azizbekyan 3 年之前
父节点
当前提交
cc109a7125
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      kafka-ui-react-app/src/components/common/MultiSelect/MultiSelect.styled.ts

+ 8 - 1
kafka-ui-react-app/src/components/common/MultiSelect/MultiSelect.styled.ts

@@ -8,7 +8,6 @@ const MultiSelect = styled(ReactMultiSelect)<{ minWidth?: string }>`
 
   & > .dropdown-container {
     height: 32px;
-
     * {
       cursor: ${({ disabled }) => (disabled ? 'not-allowed' : 'pointer')};
     }
@@ -17,6 +16,14 @@ const MultiSelect = styled(ReactMultiSelect)<{ minWidth?: string }>`
       height: 32px;
       color: ${({ disabled, theme }) =>
         disabled ? theme.select.color.disabled : theme.select.color.active};
+      & > .clear-selected-button {
+        display: none;
+      }
+      &:hover {
+        & > .clear-selected-button {
+          display: block;
+        }
+      }
     }
   }
 `;