File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed
packages/uui-keyboard-shortcut/lib Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 1
1
import { defineElement } from '@umbraco-ui/uui-base/lib/registration' ;
2
2
import { css , html , LitElement } from 'lit' ;
3
- import { queryAssignedNodes } from 'lit/decorators.js' ;
4
3
5
4
/**
6
5
* A visual representation of a key on you keyboard. use inside `<uui-keyboard-shortcut></uui-keyboard-shortcut>`
@@ -21,24 +20,13 @@ export class UUIKeyElement extends LitElement {
21
20
padding: 5px 7px;
22
21
box-sizing: border-box;
23
22
user-select: none;
23
+ text-transform: lowercase;
24
24
}
25
25
` ,
26
26
] ;
27
27
28
- @queryAssignedNodes ( )
29
- private slotNodes ! : NodeList ;
30
-
31
- private _changeCase ( ) {
32
- if ( this . slotNodes !== null ) {
33
- this . slotNodes . forEach ( node => {
34
- if ( node . nodeName === '#text' && node . nodeValue )
35
- node . nodeValue = node . nodeValue ?. toLowerCase ( ) ;
36
- } ) ;
37
- }
38
- }
39
-
40
28
render ( ) {
41
- return html `< slot @slotchange = ${ this . _changeCase } > </ slot > ` ;
29
+ return html `< slot > </ slot > ` ;
42
30
}
43
31
}
44
32
You can’t perform that action at this time.
0 commit comments