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

Add optional safe triangle to <post-popovercontainer> #4169

Closed
1 task
Tracked by #4170
gfellerph opened this issue Dec 6, 2024 · 0 comments · Fixed by #4436
Closed
1 task
Tracked by #4170

Add optional safe triangle to <post-popovercontainer> #4169

gfellerph opened this issue Dec 6, 2024 · 0 comments · Fixed by #4436
Assignees
Labels
📦 components Related to the @swisspost/design-system-components package
Milestone

Comments

@gfellerph
Copy link
Member

gfellerph commented Dec 6, 2024

A safe triangle allows hovering a different active area with your mouse without triggering another hover event.

Safe triangle

Example of red colored safe triangle from shoelace. The safe triangle allows the mouse to move to level 2 menu entries directly and not triggering another level 1 hover interaction when the mouse path crosses another level 1 item. The safe triangle spans from the current mouse position to the nearest edges of the open menu.

sr1.mp4

https://shoelace.style/components/menu

Safe trapezoid

A safe trapezoid builds a bridge between two elements, e.g. a tooltip and it's trigger so the mouse can safely move between the two elements without closing the tooltip. The safe trapezoid connects the nearest outer edges of each element and does not depend on the mouse position.

Image

Proposed API

<post-popovercontainer safe-space="triangle|trapezoid">
  <slot></slot>
</post-popovercontainer>

Implementation reference

Tasks

Preview Give feedback
@gfellerph gfellerph added the 💭 draft Issue is not ready for development label Dec 6, 2024
@gfellerph gfellerph removed the 💭 draft Issue is not ready for development label Dec 6, 2024
@gfellerph gfellerph changed the title Add optional safe-space to <post-popovercontainer> Add optional safe triangle to <post-popovercontainer> Dec 6, 2024
@gfellerph gfellerph added the 📦 components Related to the @swisspost/design-system-components package label Dec 6, 2024
@gfellerph gfellerph added this to the Design v2 milestone Dec 6, 2024
@gfellerph gfellerph moved this from 👀 Triage to 💻 Ready for development in Design System Production Board Dec 18, 2024
@schaertim schaertim self-assigned this Jan 9, 2025
@schaertim schaertim moved this from 💻 Ready for development to 🕹️ Coding in progress in Design System Production Board Jan 9, 2025
@schaertim schaertim moved this from 🕹️ Coding in progress to 🤬 Dev in Code Review in Design System Production Board Jan 14, 2025
@schaertim schaertim moved this from 🤬 Dev in Code Review to 🕹️ Coding in progress in Design System Production Board Jan 28, 2025
@schaertim schaertim moved this from 🕹️ Coding in progress to 🤬 Dev in Code Review in Design System Production Board Jan 28, 2025
@schaertim schaertim moved this from 🤬 Dev in Code Review to 🕹️ Coding in progress in Design System Production Board Feb 11, 2025
@schaertim schaertim moved this from 🕹️ Coding in progress to 🤬 Dev in Code Review in Design System Production Board Feb 12, 2025
@github-project-automation github-project-automation bot moved this from 🤬 Dev in Code Review to 🚀 Done in Design System Production Board Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 components Related to the @swisspost/design-system-components package
Projects
Status: 🚀 Done
Development

Successfully merging a pull request may close this issue.

2 participants