Skip to content

Commit

Permalink
feat(cxl-ui): [cxl-certificate-header] update completed page
Browse files Browse the repository at this point in the history
  • Loading branch information
anoblet committed Mar 1, 2024
1 parent 374c4f3 commit 7a09568
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions packages/cxl-ui/scss/global/cxl-certificate-header.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
@use "~@conversionxl/cxl-lumo-styles/scss/mq";

cxl-certificate-header {
position: relative;
display: block;
z-index: 1;

&[theme~="completed"] {
[slot="credential"] img {
display: none;

@media #{mq.$medium} {
display: initial;
}
}
}
}
6 changes: 3 additions & 3 deletions packages/cxl-ui/src/components/cxl-certificate-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export class CXLCertificateHeaderElement extends LitElement {
return nothing;
}
return html`<h2 class="completed">
return html`<h3 class="completed">
<span class="completed-icon"><vaadin-icon icon="lumo:checkmark"></vaadin-icon></span>
Training completed
</h2>`;
Certificate earned
</h3>`;
}
// eslint-disable-next-line class-methods-use-this
Expand Down

0 comments on commit 7a09568

Please sign in to comment.