Skip to content

Commit

Permalink
fix(Banner): dismiss color with imageTheme="light"
Browse files Browse the repository at this point in the history
Неверный цвет у крестика при
`mode="image" imageTheme="light" asideMode="dismiss"`
  • Loading branch information
actions-user committed Jun 8, 2023
1 parent 9f91c18 commit 1e92f81
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions packages/vkui/src/components/Banner/Banner.e2e-playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ export const BannerPlayground = (props: ComponentPlaygroundProps) => {
</Button>,
],
},
{
mode: ['image'],
asideMode: ['dismiss', 'expand'],
imageTheme: ['light'],
header: ['Мои достижения'],
subheader: ['Разблокировано 9 из 36'],
},
{
mode: ['image'],
asideMode: ['dismiss', 'expand'],
imageTheme: ['dark'],
header: ['Мои достижения'],
subheader: ['Разблокировано 9 из 36'],
background: [<div key="img-bg" style={{ backgroundColor: '#222222' }} />],
},
]}
>
{(props: BannerProps) => (
Expand Down
3 changes: 2 additions & 1 deletion packages/vkui/src/components/Banner/Banner.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
background-color: var(--vkui--color_background_secondary);
}

.Banner--mode-image .Banner__dismiss,
.Banner--inverted .Banner__dismiss,
.Banner--inverted .Banner__expand,
.Banner--inverted {
color: var(--vkui--color_text_contrast);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/vkui/src/components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const Banner = ({
{content}

<div className={styles['Banner__aside']}>
<Icon24Chevron />
<Icon24Chevron className={styles['Banner__expand']} />
</div>
</Tappable>
) : (
Expand Down

0 comments on commit 1e92f81

Please sign in to comment.