From 4fe48d16462d489b41fb3916ed26e3d10659c1e1 Mon Sep 17 00:00:00 2001 From: Hoang Thuan Pham Date: Fri, 17 Jun 2022 10:22:49 -0400 Subject: [PATCH] Fix css positioning for filter text box icon Currently, the filter icon of the filter text box stays fixed at the top left of the filter tree, even when the filter text box is out of sight when users scroll down the tree. This commit fixes this issue by setting the position css property of the parent div of the filter text box to relative, so that the filter icon is positioned relatively to the parent container and stays attached to the filter text box. Signed-off-by: Hoang Thuan Pham --- .../__tests__/__snapshots__/entry-tree.test.tsx.snap | 9 +-------- .../src/components/utils/filter-tree/filter.tsx | 2 +- .../react-components/style/output-components-style.css | 4 ++++ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/react-components/src/components/utils/filter-tree/__tests__/__snapshots__/entry-tree.test.tsx.snap b/packages/react-components/src/components/utils/filter-tree/__tests__/__snapshots__/entry-tree.test.tsx.snap index 37770c9e5..11c407912 100644 --- a/packages/react-components/src/components/utils/filter-tree/__tests__/__snapshots__/entry-tree.test.tsx.snap +++ b/packages/react-components/src/components/utils/filter-tree/__tests__/__snapshots__/entry-tree.test.tsx.snap @@ -1,11 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP - exports[`Empty tree 1`] = ` `; - exports[`Entry with children All unchecked 1`] = `
`; - exports[`Entry with children Check one grandchild 1`] = `
`; - exports[`Entry with children Collapse one child 1`] = `
`; - exports[`Entry with children With filter element 1`] = ` Array [
, ] `; - exports[`one level of entries 1`] = `
`; - exports[`one level of entries 2`] = `
`; - exports[`one level of entries 3`] = `
{ } render(): JSX.Element { - return
+ return