Skip to content

Commit

Permalink
Merge branch 'main' into improve-markdown-editor
Browse files Browse the repository at this point in the history
  • Loading branch information
iansan5653 authored Aug 23, 2022
2 parents bc5a62a + d46ae9f commit d62f317
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-apples-collect.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
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
46 changes: 18 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/FilteredSearch.tsx
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 d62f317

Please sign in to comment.