Skip to content

Commit

Permalink
feat: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-ammar committed Mar 24, 2021
1 parent 296b1e2 commit 76eb9a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/course-search/TypeaheadFacetDropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const TypeaheadFacetDropdown = ({

const transformMenuOptions = menuOptions => (
<>
<div className="p-2">
<div className="pr-2 pl-2 pb-2">
<Input
autoFocus
type="search"
Expand Down
1 change: 1 addition & 0 deletions src/course-search/styles/_FacetList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ $facet-dropdown-max-height: 250px;
.typeahead {
.dropdown-menu {
max-height: unset;
overflow-y: unset;

.typeahead-dropdown-menu-scrollable-items {
max-height: $facet-dropdown-max-height;
Expand Down
6 changes: 5 additions & 1 deletion src/course-search/tests/FacetListBase.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ const searchableDropdownProps = {
searchForItems: jest.fn(),
searchable: true,
isBold: true,
typeaheadOptions: { placeholder: 'Find a skill', ariaLabel: 'Type to find a skill', minLength: 3 },
typeaheadOptions: {
placeholder: 'Find a skill...',
ariaLabel: 'Type to find a skill',
minLength: 3,
},
};

describe('<FacetListBase />', () => {
Expand Down

0 comments on commit 76eb9a8

Please sign in to comment.