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(Tooltip,Hint): set useWrapper to false by default #2340

Merged
merged 4 commits into from
Apr 9, 2021
Merged

Conversation

zhzz
Copy link
Member

@zhzz zhzz commented Apr 6, 2021

IF-95

В попапе переданный anchorElement по умолчанию оборачивается в <span />. Это помогает навешивать события, когда туда попадает массив элементов или фрагмент, но мешает корректному позиционированию попапа.

Уже давно хотели переключить это поведение по умолчанию. Т.к. все тесты с тултипами и хинтами все равно поехали, то заодно обновил их смещения по гайдам и новым макетам из 8px.

Пришлось обновить одну историю с тултипом, т.к. из-за меньшего смещения тултип стал вести себя по другому, что противоречило сути теста.

fix #928

zhzz added 3 commits April 6, 2021 17:39
BREAKING CHANGE: It may affect position of Tooltips and Hints over your element due default wrapper removal. Also default offsets were changed.
@zhzz zhzz force-pushed the use-wrapper-false branch from 4b258e4 to b16fe22 Compare April 6, 2021 12:40
@zhzz zhzz marked this pull request as ready for review April 7, 2021 03:57
@zhzz zhzz requested review from StathamJason and lossir April 7, 2021 03:58
StathamJason
StathamJason previously approved these changes Apr 7, 2021
lossir
lossir previously approved these changes Apr 9, 2021
@zhzz zhzz dismissed stale reviews from lossir and StathamJason via 7156c51 April 9, 2021 18:16
@zhzz zhzz force-pushed the use-wrapper-false branch from 7156c51 to 858e70f Compare April 9, 2021 18:47
@zhzz zhzz merged commit f579269 into next Apr 9, 2021
@zhzz zhzz deleted the use-wrapper-false branch April 9, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants