Skip to content

Commit

Permalink
fix: changed checkmark to check in md-icon selected slot
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Aug 16, 2024
1 parent b8f362a commit 2e2817b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions catalog/src/components/copy-code-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import '@material/web/icon/icon.js';
import '@material/web/iconbutton/icon-button.js';

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

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

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

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

render() {
Expand All @@ -80,7 +80,7 @@ export class CopyCodeButton extends LitElement {
aria-label=${this.label}
aria-label-selected=${this.successLabel}>
<md-icon>content_copy</md-icon>
<md-icon slot="selected">checkmark</md-icon>
<md-icon slot="selected">check</md-icon>
</md-icon-button>
`;
}
Expand Down

0 comments on commit 2e2817b

Please sign in to comment.