Skip to content
Discussion options

You must be logged in to vote

Hi @Ditofry - a couple of options:

  1. If you're willing to make a contribution to the system, the best way to be able to hook into and test the footer buttons would be to refactor the Alert Dialog component to be composable. Right now, it's built so that everything is controlled by props, but we have some planned work (not yet on the roadmap) to deprecate that API. If you're interested in that, feel free to check out this ticket, and let's set up a time to chat about the work.
  2. In the meantime, in order to hook into those buttons for your tests, you can make use of the data-paste-element prop that gets added to all our components. If you inspect the component using dev tools, you'll be able …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ditofry
Comment options

Answer selected by Ditofry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants