-
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 2 - hds adoption replace <Modal> #23398
Changes from all commits
b78884f
5cbc702
2980633
0cb33dc
d8a0b07
f3a63c9
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 |
---|---|---|
|
@@ -192,16 +192,25 @@ | |
</div> | ||
</div> | ||
</form> | ||
<Modal @title="Results" @onClose={{action (mut @isModalActive) false}} @isActive={{@isModalActive}}> | ||
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. |
||
<section class="modal-card-body"> | ||
<Hds::Alert @type="inline" @color={{if @valid "success" "critical"}} as |A|> | ||
<A.Title>{{if @valid "Valid" "Not Valid"}}</A.Title> | ||
<A.Description> | ||
The input is | ||
{{if @valid "valid" "not valid"}} | ||
for the given | ||
{{if @signature "signature." "HMAC."}} | ||
</A.Description> | ||
</Hds::Alert> | ||
</section> | ||
</Modal> | ||
{{#if @isModalActive}} | ||
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. |
||
<Hds::Modal id="transit-verify-modal" @size="small" @onClose={{fn (mut @isModalActive) false}} as |M|> | ||
<M.Header> | ||
Results | ||
<Hds::Badge | ||
@text={{if @valid "Valid" "Not Valid"}} | ||
@size="large" | ||
@color={{if @valid "success" "critical"}} | ||
@icon={{if @valid "check-circle" "x-circle"}} | ||
/> | ||
</M.Header> | ||
<M.Body> | ||
The input is | ||
{{if @valid "valid" "not valid"}} | ||
for the given | ||
{{if @signature "signature." "HMAC."}} | ||
</M.Body> | ||
<M.Footer as |F|> | ||
<Hds::Button @text="Close" {{on "click" F.close}} /> | ||
</M.Footer> | ||
</Hds::Modal> | ||
{{/if}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,8 @@ | |
"@ember/test-waiters": "^3.0.0", | ||
"@glimmer/component": "^1.1.2", | ||
"@glimmer/tracking": "^1.1.2", | ||
"@hashicorp/ember-flight-icons": "^3.0.9", | ||
"@hashicorp/design-system-components": "^2.12.2", | ||
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. had to upgrade because |
||
"@hashicorp/ember-flight-icons": "^3.1.3", | ||
"@hashicorp/structure-icons": "^1.3.0", | ||
"@icholy/duration": "^5.1.0", | ||
"@tsconfig/ember": "^1.0.1", | ||
|
@@ -248,7 +249,6 @@ | |
] | ||
}, | ||
"dependencies": { | ||
"@hashicorp/design-system-components": "^2.9.0", | ||
"handlebars": "4.7.7", | ||
"highlight.js": "^10.4.1", | ||
"node-notifier": "^8.0.1", | ||
|
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.
all of the transit modals have similar styling - so just one screenshot :)
