Skip to content

Commit

Permalink
core: fix modal position to stick to input for pickers
Browse files Browse the repository at this point in the history
Signed-off-by: Achraf Mohyeddine <[email protected]>
  • Loading branch information
achrafmohye committed Jan 21, 2025
1 parent 92bbf29 commit 6e5b929
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions ui-core/src/stories/TolerancePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,14 @@ export const WarningTolerancePicker: Story = {
label: 'Tolerance',
},
};

export const ScrollableHeightTolerancePicker: Story = {
args: {},
decorators: [
(Story) => (
<div style={{ height: '1200px' }}>
<Story />
</div>
),
],
};
2 changes: 1 addition & 1 deletion ui-core/src/styles/inputs/modal.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.modal-ui-overlay {
position: fixed;
position: absolute;
top: 0;
left: 0;
right: 0;
Expand Down

0 comments on commit 6e5b929

Please sign in to comment.