Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Возможность красить Panel градиентом через css переменную #6327

Closed
danillas opened this issue Dec 21, 2023 · 1 comment · Fixed by #6736
Assignees
Milestone

Comments

@danillas
Copy link

Описание

Для этого предлагается задавать цвет через свойство background:

.vkuiPanel .vkuiPanel__in, .vkuiPanel:before {
    background-color: #fff;
    background: var(--vkui--color_background_content);
}

Использование

.MyCustomPanel {
  --vkui--color_background_content: linear-gradient(135deg, #66adff 0%, #0077ff 100%)
}

Скриншоты

image

@eugpoloz eugpoloz added this to VKUI Dec 21, 2023
@github-project-automation github-project-automation bot moved this to 🗃 Backlog in VKUI Dec 21, 2023
@mendrew mendrew moved this from 🗃 Backlog to 🔧 In progress in VKUI Mar 22, 2024
@mendrew mendrew self-assigned this Mar 22, 2024
@mendrew mendrew added this to the v6.0.2 milestone Mar 22, 2024
@mendrew mendrew moved this from 🔧 In progress to 👀 In Review in VKUI Mar 25, 2024
@github-project-automation github-project-automation bot moved this from 👀 In Review to ✅ Done in VKUI Mar 25, 2024
@vkcom-publisher
Copy link
Contributor

v6.0.2 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants