Skip to content

Commit

Permalink
refactor(cxl-ui): [cxl-certificate-header] copy and credential visibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
anoblet authored and pawelkmpt committed Mar 4, 2024
1 parent 374c4f3 commit 8fdc043
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 8fdc043

Please sign in to comment.