[core] overlays.openConfirm: add capability to specify icon for confirm or cancel buttons #81482
Labels
enhancement
New value added to drive a business result
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Recent designs are displaying an icon in the 'confirm' button of confirmation modals
in example:
EuiConfirmModal
allow to pass a react element ascancelButtonText
andconfirmButtonText
, however ascore
is framework agnostic, we decided to only allowstring
for these options, removing the possibility to customize the buttons labels.Having an icon seems the most common enhancement. We should add
confirmButtonIcon
andcancelButtonIcon
options toopenConfirm
.An alternative would be to allow to pass a
MountPoint
forconfirmButtonText
/cancelButtonText
, but this feels overkill.The text was updated successfully, but these errors were encountered: