Skip to content

Commit 2e2817b

Browse files
author
yashrajbharticybtekk
committed
fix: changed checkmark to check in md-icon selected slot
1 parent b8f362a commit 2e2817b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

catalog/src/components/copy-code-button.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import '@material/web/icon/icon.js';
88
import '@material/web/iconbutton/icon-button.js';
99

10-
import {MdIconButton} from '@material/web/iconbutton/icon-button.js';
11-
import {css, html, LitElement} from 'lit';
10+
import { MdIconButton } from '@material/web/iconbutton/icon-button.js';
11+
import { css, html, LitElement } from 'lit';
1212
import {
1313
customElement,
1414
property,
@@ -56,16 +56,16 @@ export class CopyCodeButton extends LitElement {
5656
* The aria label for the copy button when it has been clicked and the copy is
5757
* successul.
5858
*/
59-
@property({attribute: 'success-label'}) successLabel = 'Copy successful';
59+
@property({ attribute: 'success-label' }) successLabel = 'Copy successful';
6060

6161
/**
6262
* The title to be set on the copy button.
6363
*/
64-
@property({attribute: 'button-title'}) buttonTitle = 'Copy code';
64+
@property({ attribute: 'button-title' }) buttonTitle = 'Copy code';
6565

6666
@query('md-icon-button') private copyButton!: MdIconButton;
6767

68-
@queryAssignedElements({flatten: true, selector: '*'})
68+
@queryAssignedElements({ flatten: true, selector: '*' })
6969
private slottedEls!: NodeListOf<HTMLElement>;
7070

7171
render() {
@@ -80,7 +80,7 @@ export class CopyCodeButton extends LitElement {
8080
aria-label=${this.label}
8181
aria-label-selected=${this.successLabel}>
8282
<md-icon>content_copy</md-icon>
83-
<md-icon slot="selected">checkmark</md-icon>
83+
<md-icon slot="selected">check</md-icon>
8484
</md-icon-button>
8585
`;
8686
}

0 commit comments

Comments
 (0)