Skip to content

Commit

Permalink
fix(Panel): background color layout=card (#5888)
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud authored Sep 29, 2023
1 parent eee9d31 commit 42500e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions packages/vkui/src/components/Panel/Panel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@
background-color: var(--vkui--color_background_content);
}

.Panel--layout-card .Panel__in,
.Panel--layout-card::before {
background-color: var(--vkui--color_background);
}

.Panel--sizeX-regular .Panel__in,
.Panel--sizeX-regular::before {
background-color: transparent;
Expand All @@ -177,9 +182,3 @@
background-color: transparent;
}
}

/* В AppRoot была установлена layout настройка */
.Panel--layoutSetting .Panel__in,
.Panel--layoutSetting::before {
background-color: transparent;
}
2 changes: 1 addition & 1 deletion packages/vkui/src/components/Panel/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const Panel = ({ centered = false, children, nav, ...restProps }: PanelPr
styles['Panel'],
sizeXClassNames[sizeX],
centered && 'vkuiInternalPanel--centered',
layout && styles['Panel--layoutSetting'],
layout === 'card' && styles['Panel--layout-card'],
)}
>
<Touch
Expand Down

0 comments on commit 42500e4

Please sign in to comment.