-
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 <CopyButton> component #22333
Changes from 21 commits
86ff82c
1ae69ad
228c6a2
499e047
0045a29
4f8dc36
662c631
d596f80
ed2d5f3
a27881c
5329b58
0379783
7a65c27
0a7bfa8
effb2a0
7f58d4b
a1156f9
2bf3524
abeb6be
2f09675
230d1d6
4eaf13a
948b9fa
6468f7b
790ef37
961fbf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,11 +47,6 @@ export default class KeymgmtKeyEdit extends Component { | |
return this.args.mode === 'create'; | ||
} | ||
|
||
@action | ||
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. while cleaning up transit I noticed this action was unused |
||
toggleModal(bool) { | ||
this.isDeleteModalOpen = bool; | ||
} | ||
|
||
@task | ||
@waitFor | ||
*saveKey(evt) { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -214,13 +214,6 @@ export default Component.extend(TRANSIT_PARAMS, { | |
arr.forEach((param) => this.set(param, null)); | ||
}, | ||
|
||
toggleModal(successMessage) { | ||
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. removed |
||
if (!!successMessage && typeof successMessage === 'string') { | ||
this.flashMessages.success(successMessage); | ||
} | ||
this.toggleProperty('isModalActive'); | ||
}, | ||
|
||
doSubmit(data, options = {}, maybeEvent) { | ||
const event = options.type === 'submit' ? options : maybeEvent; | ||
if (event) { | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,10 +14,9 @@ | |
display: inline-block; | ||
font-size: $size-8; | ||
font-weight: $font-weight-semibold; | ||
height: 2.5rem; | ||
line-height: 1.6; | ||
min-height: 2.25rem; | ||
min-width: 6rem; | ||
padding: $size-10 $size-8; | ||
padding: 0.5625rem 0.9375rem; | ||
Comment on lines
+17
to
+19
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. This universally matches our button dimensions to HDS (instead of matching HDS to our buttons and then later removing the modification) until we have the chance to replace all of our structure buttons (coming soooon!! 🔜 ) |
||
position: relative; | ||
text-align: center; | ||
text-decoration: none; | ||
|
@@ -332,3 +331,58 @@ a.button.disabled { | |
cursor: not-allowed; | ||
} | ||
} | ||
|
||
// Existing class on <Hds::Copy::Button> component, modifying to match existing UI Structure buttons | ||
.hds-copy-button { | ||
font-weight: $font-weight-semibold; | ||
box-shadow: $box-shadow-low; | ||
border-radius: $radius; | ||
Comment on lines
+337
to
+339
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. |
||
|
||
&.white-icon svg { | ||
color: $white; | ||
} | ||
|
||
&.icon-grey-300 svg { | ||
color: $ui-gray-300; | ||
} | ||
|
||
&.icon-grey-500 svg { | ||
color: $ui-gray-500; | ||
} | ||
|
||
&.icon-only { | ||
margin-right: $spacing-xxs; | ||
margin-left: $spacing-xxs; | ||
} | ||
|
||
&.transparent { | ||
background: none; | ||
border: none; | ||
box-shadow: none; | ||
} | ||
|
||
&.primary { | ||
background-color: $blue; | ||
border-color: darken($blue, 2%); | ||
color: $white; | ||
font-weight: $font-weight-bold; | ||
text-shadow: 0 1px 1px rgba($black, 0.25); | ||
svg { | ||
color: $white; | ||
} | ||
} | ||
|
||
&.secondary { | ||
background-color: $grey-lightest; | ||
border: 1px solid $grey-light; | ||
} | ||
|
||
&.in-dropdown { | ||
div { | ||
font-size: $size-7; | ||
} | ||
svg { | ||
color: transparent; | ||
} | ||
} | ||
} |
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. |
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. |
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. |
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.
Removed this because somewhere I came across moving away from hover copy buttons because of accessibility...of course now I can't track down where I read that 🙈