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

fix(AccordionContent): refactor for useCSSKeyframesAnimationController() #7083

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

inomdzhon
Copy link
Contributor


Описание

Чтобы не зашивать max-height, устанавливаем его тогда, когда нужно (с переходом с transition на animation заменил на использование height). Сделал для удобства, через CSS переменную, которую добавляем/удалям в useLayoutEffect() относительно animationState. По умолчанию, переменная со значением initial.

Для @media (--reduce-motion) заменяем анимацию на opacity.

Чтобы не зашивать `max-height`, устанавливаем его тогда, когда нужно (с переходом с `transition` на `animation` заменил на использование `height`). Сделал для удобства, через CSS переменную, которую добавляем/удалям в `useLayoutEffect()` относительно `animationState`. По умолчанию, переменная со значением `initial`.

Для `@media (--reduce-motion)` заменяем анимацию на `opacity`.
@inomdzhon inomdzhon requested a review from a team as a code owner June 26, 2024 12:43
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jun 26, 2024
@inomdzhon inomdzhon removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jun 26, 2024
Copy link
Contributor

github-actions bot commented Jun 26, 2024

size-limit report 📦

Path Size
JS 364.74 KB (+0.09% 🔺)
JS (gzip) 111.63 KB (+0.06% 🔺)
JS (brotli) 91.95 KB (+0.1% 🔺)
JS import Div (tree shaking) 1.42 KB (0%)
CSS 286.51 KB (+0.45% 🔺)
CSS (gzip) 37.18 KB (+0.53% 🔺)
CSS (brotli) 30.04 KB (+0.39% 🔺)

Copy link

codesandbox-ci bot commented Jun 26, 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 Jun 26, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Jun 26, 2024

👀 Docs deployed

Commit dbaf573

Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.60%. Comparing base (a8fd64f) to head (dbaf573).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7083      +/-   ##
==========================================
+ Coverage   83.57%   83.60%   +0.02%     
==========================================
  Files         352      352              
  Lines       10551    10551              
  Branches     3489     3492       +3     
==========================================
+ Hits         8818     8821       +3     
+ Misses       1733     1730       -3     
Flag Coverage Δ
unittests 83.60% <100.00%> (+0.02%) ⬆️

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.

Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

Здоровски!

Только кажется что перепутаны expand и collapse. Сами анимации отрисовывают правильно, но описание наоборот получилось.

SevereCloud
SevereCloud previously approved these changes Jun 26, 2024
mendrew
mendrew previously approved these changes Jun 26, 2024
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

💅

@inomdzhon inomdzhon dismissed stale reviews from mendrew and SevereCloud via dbaf573 June 26, 2024 14:15
Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

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

💅 💅

@inomdzhon inomdzhon merged commit 51556d1 into master Jun 26, 2024
26 checks passed
@inomdzhon inomdzhon deleted the imirdzhamolov/fix/AccrodionContent-expand-animation branch June 26, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants