palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.75k stars 2.18k forks source link

MultiStepDialog does not allow customization of back button #4518

Closed vilmosioo closed 3 years ago

vilmosioo commented 3 years ago

Environment

Package version(s): 3.38.0 Operating System: macOS 10.15 Browser name and version: All browsers

Link to a minimal repro:

https://blueprintjs.com/docs/#core/components/dialog.multistep-dialog

Steps to reproduce

MutliStepDialog provides a nextButtonProps prop for controlling props passed to the next button, but not the back button. This would be useful in processes that have a step that you can't go back from, such as a confirmation screen.

Actual behavior

Can't control disabled behaviour of 'back' button in MultiStepDialog.

Expected behavior

MultiStepDialog has a backButtonProps prop for controlling props passed to the back button.

Possible solution

Add a backButtonProps prop that controls props passed to the back button.

yuchristina commented 3 years ago

This would be very helpful. I am encountering the same problem -- would like disable and style back button.

adidahiya commented 3 years ago

@yuchristina what kind of styling are you hoping to do? Is button intent sufficient?

yuchristina commented 3 years ago

@adidahiya In terms of styling, I want to be able to use the small button. Most importantly, however, I would like to conditionally disable the button so exposing props as you have done for the final and next button would be great.