-
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: Part 4 - hds adoption replace <Modal> #23451
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -170,3 +170,10 @@ form { | |
label { | ||
cursor: pointer; | ||
} | ||
|
||
// HDS modifications | ||
.hds-modal { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wasn't sure where to put this - if there are more I may create a separate file, but it seemed okay here for now |
||
// if a component contains a modal, the modal inherits styling from the parent container | ||
// i.e. if a toolbar button opens a modal | ||
white-space: wrap; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,14 +34,10 @@ | |
@metadata={{@metadata}} | ||
@onDelete={{this.handleDestruction}} | ||
@version={{this.version}} | ||
> | ||
Delete | ||
</KvDeleteModal> | ||
/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
{{/if}} | ||
{{#if this.showDestroy}} | ||
<KvDeleteModal @mode="destroy" @secret={{@secret}} @onDelete={{this.handleDestruction}} @version={{this.version}}> | ||
Destroy | ||
</KvDeleteModal> | ||
<KvDeleteModal @mode="destroy" @secret={{@secret}} @onDelete={{this.handleDestruction}} @version={{this.version}} /> | ||
{{/if}} | ||
{{#if (or @secret.canReadData @secret.canReadMetadata @secret.canEditData)}} | ||
<div class="toolbar-separator"></div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,12 @@ | |
|
||
<:toolbarActions> | ||
{{#if @secret.canDeleteMetadata}} | ||
<KvDeleteModal @mode="delete-metadata" @metadata={{@metadata}} @onDelete={{this.onDelete}}> | ||
Permanently delete | ||
</KvDeleteModal> | ||
<KvDeleteModal | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
@mode="delete-metadata" | ||
@metadata={{@metadata}} | ||
@onDelete={{this.onDelete}} | ||
@text="Permanently delete" | ||
/> | ||
{{/if}} | ||
{{#if @secret.canUpdateMetadata}} | ||
<ToolbarLink @route="secret.metadata.edit" data-test-edit-metadata>Edit metadata</ToolbarLink> | ||
|
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.
Removing because this color doesn't exist in HDS buttons