Skip to content

Commit

Permalink
feat(select): define max-height and add variable to control it (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
felipefialho authored Sep 12, 2024
1 parent 90ee9b5 commit 7917638
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/src/components/select/stories/select.args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ export const SelectStoryArgs = {
category: Category.EVENTS,
},
},
'--select-max-height': {
description: 'Add a custom max-height to the select list options.',
defaultValue: { summary: '250px' },
table: {
category: Category.CSS_CUSTOM_PROPERTIES,
},
},
},
}

Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/global/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ Issue: https://github.com/ionic-team/ionic-framework/issues/27500
*/

.select-popover {
--max-height: var(--select-max-height, 250px);

&.atom-select__popover {
.select-interface-option {
--background-hover: var(--color-neutral-light-5);
Expand Down

0 comments on commit 7917638

Please sign in to comment.