Skip to content

Commit

Permalink
fix(css): use user-provided panelLayout class (#628)
Browse files Browse the repository at this point in the history
Thanks @ethanresnick for pointing this out!

closes #627

co-authored-by: ethanresnick <[email protected]>

Co-authored-by: ethanresnick <[email protected]>
  • Loading branch information
Haroenv and ethanresnick authored Jul 16, 2021
1 parent 822775c commit c3aeb9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/autocomplete-js/src/getDefaultOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const defaultClassNames: AutocompleteClassNames = {
list: 'aa-List',
loadingIndicator: 'aa-LoadingIndicator',
panel: 'aa-Panel',
panelLayout: 'aa-PanelLayout',
panelLayout: 'aa-PanelLayout aa-Panel--scrollable',
root: 'aa-Autocomplete',
source: 'aa-Source',
sourceFooter: 'aa-SourceFooter',
Expand Down
2 changes: 1 addition & 1 deletion packages/autocomplete-js/src/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function renderPanel<TItem extends BaseItem>(

const children = (
<Fragment>
<div className="aa-PanelLayout aa-Panel--scrollable">{sections}</div>
<div className={classNames.panelLayout}>{sections}</div>
<div className="aa-GradientBottom" />
</Fragment>
);
Expand Down

0 comments on commit c3aeb9f

Please sign in to comment.