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

feat(Button): update button background-color with appearance="overlay" and mode="secondary" #7661

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Sep 25, 2024


  • e2e-тесты
  • Дизайн-ревью
  • Release notes

Описание

Компонент Button со значениями appearance="overlay" и mode="secondary" выглядит непредсказуемо на фотографиях, поэтому нужно заменить токены фона в обычном, ховер и active состоянии

Изменения

  • Заменил токены фона для Button с appearance="overlay" и mode="secondary" на --vkui--color_overlay_primary, --vkui--color_overlay_primary--hover, --vkui--color_overlay_primary--active.
  • Обновил скриншотные тесты

Release notes

BREAKING CHANGE

  • Button: Изменен цвет компонента при appearance="overlay" и mode="secondary"
    Switch M3 Dark (2)

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner September 25, 2024 14:43
Copy link

codesandbox-ci bot commented Sep 25, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Sep 25, 2024

size-limit report 📦

Path Size
JS 385.39 KB (0%)
JS (gzip) 116.62 KB (0%)
JS (brotli) 95.75 KB (0%)
JS import Div (tree shaking) 1.46 KB (0%)
CSS 331.29 KB (+0.03% 🔺)
CSS (gzip) 41.52 KB (+0.03% 🔺)
CSS (brotli) 32.94 KB (+0.06% 🔺)

Copy link
Contributor

github-actions bot commented Sep 25, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Sep 25, 2024

👀 Docs deployed

Commit 34e6065

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.16%. Comparing base (f0f463c) to head (34e6065).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7661   +/-   ##
=======================================
  Coverage   95.16%   95.16%           
=======================================
  Files         383      383           
  Lines       11333    11333           
  Branches     3714     3714           
=======================================
  Hits        10785    10785           
  Misses        548      548           
Flag Coverage Δ
unittests 95.16% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@inomdzhon
Copy link
Contributor

Нужно подтянуть master, а то конфликт

…y-overlay-styles

# Conflicts:
#	packages/vkui/src/components/Button/Button.module.css
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

В Releases note не хватает светлой вариации картинки

@EldarMuhamethanov
Copy link
Contributor Author

Note

В Releases note не хватает светлой вариации картинки

я не думаю, что она особо нужна, так как сами кнопки на подложке будут выглядеть также

@EldarMuhamethanov EldarMuhamethanov merged commit 6eeb964 into master Sep 27, 2024
28 checks passed
@EldarMuhamethanov EldarMuhamethanov deleted the e.muhamethanov/7659/change-button-secondary-overlay-styles branch September 27, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Button]: Тёмная кнопка в режиме Appearance = Overlay, Mode = Secondary
3 participants