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

calcite-dialog - add method to "reset" it back to its original position relative to reference before dragging #11320

Open
2 of 5 tasks
ethanbdev opened this issue Jan 16, 2025 · 0 comments
Labels
0 - new New issues that need assignment. ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members enhancement Issues tied to a new feature or request. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.

Comments

@ethanbdev
Copy link
Contributor

Check existing issues

Description

We have some ui interactions where we want to reposition the draggable dialog, basically removing the transform that is applied in the shadow root of the component. There isn't a semantic way to do this, and to workaround we basically toggle the dragEnabled property. Doing this resets the dialog bad to its original position relative to its reference element.

This comes up because the reference element is also movable, and it leads to some unexpected looking ui when the dialog is re-opened. It might be nice to have a semantic way to reset the resize as well.

Acceptance Criteria

A semantic way to remove the transfrom applied from dragging and reset the dialog relative to its reference. It would go back to honoring the css x / y custom properties.

Relevant Info

No response

Which Component

calcite-dialog

Example Use Case

await dialogElement.resetTransform() or something like that

Priority impact

impact - p3 - not time sensitive

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Web Analysis

@ethanbdev ethanbdev added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Jan 16, 2025
@github-actions github-actions bot added ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Web Analysis Issues logged by ArcGIS Web Analysis team members enhancement Issues tied to a new feature or request. impact - p3 - not time sensitive User set priority impact status of p3 - not time sensitive needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant