Skip to content

Conversation

@leigh-pointer
Copy link
Contributor

This PR introduces a new private method GetButtonSize() to enhance the consistency of button sizing within our UI. The method specifically checks for the presence of the "btn-sm" class in the Action Button's class list and applies the same sizing to the Cancel Button if found.

This PR introduces a new private method GetButtonSize() to enhance the consistency of button sizing within our UI. The method specifically checks for the presence of the "btn-sm" class in the Action Button's class list and applies the same sizing to the Cancel Button if found.
@sbwalker
Copy link
Member

@leigh-pointer my preference for handling this scenario is to introduce new parameters for ConfirmClass and CancelClass which would enable a developer to override and specify their preferred CSS classes for each button. By default Class would be used for the non-modal button and would use "btn btn-primary", ConfirmClass would be used for the Confirm modal button and would use the same value as Class (unless overridden), and CancelClass would be used for the Cancel modal button and would use "btn btn-secondary" (unless overridden).

@leigh-pointer
Copy link
Contributor Author

@sbwalker changed as to your comment,

@sbwalker sbwalker merged commit bd54ce5 into oqtane:dev Jan 22, 2025
1 check passed
@leigh-pointer leigh-pointer deleted the ActionDialogSize branch January 22, 2025 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants