We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f106776 commit 2dd5b5fCopy full SHA for 2dd5b5f
src/system/lib/Components.ts
@@ -31,19 +31,22 @@ const Components: Library = {
31
const button = new HTML('button')
32
button.style({
33
'border-radius': '5px',
34
- padding: '2.5px',
35
- background: 'transparent',
36
- border: '1px solid var(--surface-0)'
+ padding: '2.5px 5px',
+ background: 'var(--base)',
+ border: '1px solid var(--surface-1)'
37
})
38
return button
39
}
40
},
41
Icon: {
42
- new: (icon: string) => {
+ new: (icon: string, size = 'inherit') => {
43
const { HTML } = library
44
return new HTML('i')
45
.class('material-symbols-rounded')
46
.text(icon)
47
+ .style({
48
+ 'font-size': size
49
+ })
50
51
52
0 commit comments