Skip to content

Commit

Permalink
[REVERT ME] Add documentation test example
Browse files Browse the repository at this point in the history
- which also demonstrates the UI behavior @scottybollinger wants
  • Loading branch information
cee-chen committed Sep 23, 2021
1 parent 0a7869a commit eb406ac
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions src-docs/src/views/super_select/super_select_complex.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,24 @@ export default () => {
};

return (
<EuiSuperSelect
options={options}
valueOfSelected={value}
onChange={(value) => onChange(value)}
itemLayoutAlign="top"
hasDividers
/>
<>
<style>
{`.wrapper {
width: 150px;
}
.dropdown {
width: 450px !important;
}`}
</style>
<EuiSuperSelect
options={options}
valueOfSelected={value}
onChange={(value) => onChange(value)}
itemLayoutAlign="top"
hasDividers
popoverClassName="wrapper"
popoverPanelClassName="dropdown"
/>
</>
);
};

0 comments on commit eb406ac

Please sign in to comment.