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 Feb 21, 2024
1 parent 374c4f3 commit 640b4f9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/cxl-ui/scss/cxl-certificate-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
}

.title {
font-size: var(--lumo-font-size-xxl);
margin: 0;
}

Expand Down
8 changes: 8 additions & 0 deletions packages/cxl-ui/scss/global/cxl-certificate-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ cxl-certificate-header {
display: block;
z-index: 1;
}

cxl-app-layout:not([wide]) {
cxl-certificate-header {
&::part(credential) {
display: none;
}
}
}
8 changes: 4 additions & 4 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 All @@ -63,7 +63,7 @@ export class CXLCertificateHeaderElement extends LitElement {
return nothing;
}
return html`<div class="credential"><slot name="credential"></slot>`;
return html`<div class="credential" part="credential"><slot name="credential"></slot>`;
}
render() {
Expand Down

0 comments on commit 640b4f9

Please sign in to comment.