Skip to content

Commit

Permalink
Merge pull request #399 from conversionxl/anoblet/feat/completed
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelkmpt authored Mar 4, 2024
2 parents 15ea31a + 45dd30b commit 6f63f36
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 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,19 @@
@use "~@conversionxl/cxl-lumo-styles/scss/mq";

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

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

@media #{mq.$medium} {
display: block;
}
}
}
}
}
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 6f63f36

Please sign in to comment.