7
7
import '@material/web/icon/icon.js' ;
8
8
import '@material/web/iconbutton/icon-button.js' ;
9
9
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' ;
12
12
import {
13
13
customElement ,
14
14
property ,
@@ -56,16 +56,16 @@ export class CopyCodeButton extends LitElement {
56
56
* The aria label for the copy button when it has been clicked and the copy is
57
57
* successul.
58
58
*/
59
- @property ( { attribute : 'success-label' } ) successLabel = 'Copy successful' ;
59
+ @property ( { attribute : 'success-label' } ) successLabel = 'Copy successful' ;
60
60
61
61
/**
62
62
* The title to be set on the copy button.
63
63
*/
64
- @property ( { attribute : 'button-title' } ) buttonTitle = 'Copy code' ;
64
+ @property ( { attribute : 'button-title' } ) buttonTitle = 'Copy code' ;
65
65
66
66
@query ( 'md-icon-button' ) private copyButton ! : MdIconButton ;
67
67
68
- @queryAssignedElements ( { flatten : true , selector : '*' } )
68
+ @queryAssignedElements ( { flatten : true , selector : '*' } )
69
69
private slottedEls ! : NodeListOf < HTMLElement > ;
70
70
71
71
render ( ) {
@@ -80,7 +80,7 @@ export class CopyCodeButton extends LitElement {
80
80
aria-label=${ this . label }
81
81
aria-label-selected=${ this . successLabel } >
82
82
< md-icon > content_copy</ md-icon >
83
- < md-icon slot ="selected "> checkmark </ md-icon >
83
+ < md-icon slot ="selected "> check </ md-icon >
84
84
</ md-icon-button >
85
85
` ;
86
86
}
0 commit comments