Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Make confirmation dialogs consistent #12841

Open mlqn opened 1 month ago

mlqn commented 1 month ago

Description

We use different confirmation dialogs across the solution, which slightly affects the user experience due to the lack of uniformity

1 2

https://github.com/Altinn/altinn-studio/assets/24462611/c1eb845b-8806-4447-8138-72975e595fb7

Additional Information

No response

### Tasks
- [ ] Create StudioDeletePopover component
- [ ] Replace all usage of native confirm dialog and current Popovers with StudioDeletePopover
Annikenkbrathen commented 5 days ago

can we remove our own pop-up component and only use the native modals in this case?

wrt95 commented 2 days ago

Should consider making a component in @studio/components, <StudioConfirmPopover /> med prop for severity.

wrt95 commented 2 days ago

Do not remove native confirm from process yet, as we need more research to be done.