-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: HDS adoption replace <ConfirmAction> component #21520
UI: HDS adoption replace <ConfirmAction> component #21520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -48,6 +48,18 @@ | |||
width: 100%; | |||
} | |||
|
|||
// TODO HDS polish - temp styling fix for ConfirmAction dropdown buttons |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -21,14 +21,11 @@ | |||
|
|||
<div class="field is-grouped box is-fullwidth is-bottomless"> | |||
<ConfirmAction | |||
@buttonClasses="button is-primary" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -8,13 +8,14 @@ | |||
<ul class="menu-list"> | |||
<li class="action"> | |||
<ConfirmAction | |||
@buttonClasses="link is-destroy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -8,14 +8,13 @@ | |||
<ul class="menu-list"> | |||
<li class="action"> | |||
<ConfirmAction | |||
@buttonText="Remove" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build Results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks pretty good! Just a couple minor comments, nothing blocking
Replaces the
<ConfirmAction>
dropdown with a Button + confirmation modal. In addition, I updated the logic to be more general, instead of explicitly referencingDelete
actions, which better aligns with how this component is usedSummary of changes:
@confirmText
arg and instead modal buttons are alwaysConfirm
andCancel
for consistencyAre you sure?
which is more general than the previousDelete this?
confirm/message
new | previous functionality