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(Search): correct side margins of after element on iOS #6724

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Mar 19, 2024


  • e2e-тесты

Описание

На iOS кнопка в after выезжает если есть текст или фокус у инпута.
Но пока эта кнопка не видна, она всё ещё влияет на верстку Search, за счёт своих марджинов.
Задаём margin только когда кнопка видна.

На анимацию появления это никак не повлияло.

Изображения

Diff из Playwright для демонстрации до и после:
Screenshot 2024-03-19 at 17 20 46

На iOS кнопка в after выезжает если есть текст или
фокус у инпута.
Но пока эта кнопка не видна, она всё ещё влияет на верстку
Search, за счёт своих марджинов.
Задаём margin только когда кнопка видна.
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Mar 19, 2024
Copy link
Contributor

github-actions bot commented Mar 19, 2024

size-limit report 📦

Path Size
JS 356.68 KB (0%)
JS (gzip) 108.86 KB (0%)
JS (brotli) 89.91 KB (0%)
JS import Div (tree shaking) 1.43 KB (0%)
CSS 261.66 KB (0%)
CSS (gzip) 34.27 KB (0%)
CSS (brotli) 27.79 KB (+0.01% 🔺)

Copy link

codesandbox-ci bot commented Mar 19, 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 Mar 19, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Mar 19, 2024

👀 Docs deployed

Commit 2c86000

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.36%. Comparing base (a3b96b2) to head (2c86000).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6724   +/-   ##
=======================================
  Coverage   82.36%   82.36%           
=======================================
  Files         335      335           
  Lines       10347    10351    +4     
  Branches     3466     3467    +1     
=======================================
+ Hits         8522     8526    +4     
  Misses       1825     1825           
Flag Coverage Δ
unittests 82.36% <ø> (+<0.01%) ⬆️

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.

@mendrew mendrew marked this pull request as ready for review March 19, 2024 14:21
@mendrew mendrew requested a review from a team as a code owner March 19, 2024 14:21
@inomdzhon inomdzhon changed the title fix(Search): correct side margins of after element on iOs fix(Search): correct side margins of after element on iOS Mar 20, 2024
@mendrew mendrew merged commit 7289418 into master Mar 21, 2024
26 checks passed
@mendrew mendrew deleted the mendrew/fix/6719/Search/incorrect-side-margins-on-ios branch March 21, 2024 09:37
vkcom-publisher pushed a commit that referenced this pull request Mar 21, 2024
На iOS кнопка в after выезжает если есть текст или фокус у инпута.
Но пока эта кнопка не видна, она всё ещё влияет на верстку Search, за счёт своих марджинов.
Задаём margin только когда кнопка видна.

На анимацию появления это никак не повлияло.
@mendrew mendrew modified the milestone: v6.0.2 Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Некорректные боковые отступы у Search в ios
4 participants