Use correct color for cancel button in dialog (#34308)

* Use secondary style for cancel button in dialog

* Update snapshots

* Update screenshots

* Update screenshots
This commit is contained in:
Florian Duros
2026-07-23 12:41:17 +00:00
committed by GitHub
parent 8dc1965d15
commit 2d07c591e3
32 changed files with 41 additions and 2 deletions
@@ -29,8 +29,10 @@ interface IProps {
// should there be a cancel button? default: true
hasCancel?: boolean;
// The class of the cancel button, only used if a cancel button is
// enabled
/**
* The class of the cancel button, only used if a cancel button is enabled
* @default "cancel"
*/
cancelButtonClass?: string;
// onClick handler for the cancel button.
@@ -58,6 +60,7 @@ export default class DialogButtons extends React.Component<IProps> {
public static defaultProps: Partial<IProps> = {
hasCancel: true,
disabled: false,
cancelButtonClass: "cancel",
};
private onCancelClick = (event: React.MouseEvent): void => {