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

plasma-new-hope: Fix placement in Tooltip #1121

Open
shuga2704 opened this issue Mar 14, 2024 · 0 comments
Open

plasma-new-hope: Fix placement in Tooltip #1121

shuga2704 opened this issue Mar 14, 2024 · 0 comments
Assignees

Comments

@shuga2704
Copy link
Contributor

Tooltip сделан на Popper.js. Либа в качестве св-ва placement принимает строку с явным указанием позиционирования (например, right), либо auto, auto-start и auto-end. Также в модифаере flip она принимает allowedAutoPlacements. Оно принимает массив всевозможных плейсментов (right-end, bottom, top-start и тд.). Но, если placement указан auto-start, то и массив allowedAutoPlacements тоже должен состоять только из значнией, оканчивающихся на -start.

Валидно: placement = 'auto-start', allowedAutoPlacements = ['top-start', 'left-start']
Валидно: placement = 'auto', allowedAutoPlacements = ['top', 'left']
НЕвалидно: placement = 'auto', allowedAutoPlacements = ['top-start', 'left-start']

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

No branches or pull requests

1 participant