Skip to content

[Documents] Areablock: Support controlsTrigger "click" #908

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

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

BlackbitDevs
Copy link
Contributor

Currently the area block controls only support controlsTrigger values:

  • hover: show area block controls when hovering the area brick with mouse cursor
  • fixed: show all area brick controls

When you have a lot of area bricks, hover can be difficult to use as you could accidentically move the mouse over the wrong element. And fixed causes a lot of clutter with all the control bars being visible.

For this reason this PR adds controlsTrigger: "click". This way the control bar gets shown if you click into an area brick.
For example we implemented absolutely positioned area bricks for a web-to-print application with the click approach:

area-block-controlsTrigger-click.mp4

Copy link

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

Successfully merging this pull request may close these issues.

2 participants