Skip to content

Commit

Permalink
fix(PopoutWrapper): add position (#5555)
Browse files Browse the repository at this point in the history
Добавляем position: relative для правильного наложения элементов
  • Loading branch information
SevereCloud authored Aug 2, 2023
1 parent 3e33a6b commit b5aa644
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.ActionSheet {
position: relative;
overflow: hidden;
box-shadow: var(--vkui--elevation3);
width: calc(100% - 20px);
Expand Down
1 change: 0 additions & 1 deletion packages/vkui/src/components/ModalDismissButton/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const CustomPopout = ({ onClose }) => {
style={{
backgroundColor: 'var(--vkui--color_background_content)',
borderRadius: 8,
position: 'relative',
padding: '12px',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
justify-content: center;
width: 100%;
pointer-events: none;
position: relative;
}

.PopoutWrapper__content > * {
Expand Down
4 changes: 4 additions & 0 deletions packages/vkui/src/components/Popover/Popover.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
left: calc(-1 * var(--vkui_internal--popover_safe_zone_padding));
}

.Popover__in {
position: relative;
}

@keyframes vkui-popover-fadein {
from {
opacity: 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/vkui/src/components/Popover/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export const Popover = ({
}
renderContent={({ className: wrapperClassName }) => (
<FocusTrap
className={wrapperClassName}
className={classNames(styles['Popover__in'], wrapperClassName)}
onClose={handleContentKeyDownEscape}
restoreFocus={restoreFocus}
>
Expand Down

0 comments on commit b5aa644

Please sign in to comment.