Skip to content

Commit

Permalink
Update FilteredSearch docs and fix the z-index issue (#2242)
Browse files Browse the repository at this point in the history
* Update FilteredSearch docs

* update snapshots and add changeset
  • Loading branch information
broccolinisoup committed Aug 22, 2022
1 parent 9bb5f46 commit d46ae9f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-apples-collect.md
@@ -0,0 +1,5 @@
---
'@primer/react': patch
---

Remove z-index assignment that used to be necessary for the dropdown children of FilteredSearch
4 changes: 2 additions & 2 deletions docs/content/FilteredSearch.md
Expand Up @@ -15,14 +15,14 @@ The FilteredSearch component helps style a Dropdown and a TextInput side-by-side
<ActionMenu>
<ActionMenu.Button as="summary">Filter</ActionMenu.Button>
<ActionMenu.Overlay>
<ActionList direction="sw">
<ActionList>
<ActionList.Item>Item 1</ActionList.Item>
<ActionList.Item>Item 2</ActionList.Item>
<ActionList.Item>Item 3</ActionList.Item>
</ActionList>
</ActionMenu.Overlay>
</ActionMenu>
<TextInput icon={SearchIcon} />
<TextInput leadingVisual={SearchIcon} />
</FilteredSearch>
```

Expand Down
1 change: 0 additions & 1 deletion src/FilteredSearch.tsx
Expand Up @@ -18,7 +18,6 @@ const FilteredSearch = styled.div<SxProp>`
border-radius: 0;
border-top-right-radius: ${get('radii.2')};
border-bottom-right-radius: ${get('radii.2')};
z-index: 1; // Allows the focus outline to show on top of the dropdown.
}
${sx}
Expand Down
1 change: 0 additions & 1 deletion src/__tests__/__snapshots__/FilteredSearch.test.tsx.snap
Expand Up @@ -24,7 +24,6 @@ exports[`FilteredSearch renders consistently 1`] = `
border-radius: 0;
border-top-right-radius: 6px;
border-bottom-right-radius: 6px;
z-index: 1;
}
<div
Expand Down

0 comments on commit d46ae9f

Please sign in to comment.