@sierra-95/svelte-scaffold 1.2.11 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
html2canvas_ignore = 'false',
|
|
19
19
|
startIcon = '',
|
|
20
20
|
endIcon = '',
|
|
21
|
+
iconSize = '0.9rem',
|
|
21
22
|
style = '',
|
|
22
23
|
children = null,
|
|
23
24
|
...rest
|
|
@@ -53,9 +54,6 @@
|
|
|
53
54
|
#sierra-button:hover{
|
|
54
55
|
opacity: 0.8;
|
|
55
56
|
}
|
|
56
|
-
#sierra-button i{
|
|
57
|
-
font-size: 0.9rem;
|
|
58
|
-
}
|
|
59
57
|
/*********Button Variants*************************/
|
|
60
58
|
/* .sierra-button-contained {
|
|
61
59
|
|
|
@@ -118,11 +116,11 @@
|
|
|
118
116
|
}}
|
|
119
117
|
>
|
|
120
118
|
{#if startIcon}
|
|
121
|
-
<i class="fa {startIcon}"></i>
|
|
119
|
+
<i class="fa {startIcon}" style={`font-size: ${iconSize};`}></i>
|
|
122
120
|
{/if}
|
|
123
121
|
{@render children?.()}
|
|
124
122
|
{#if endIcon}
|
|
125
|
-
<i class="fa {endIcon}"></i>
|
|
123
|
+
<i class="fa {endIcon}" style={`font-size: ${iconSize};`}></i>
|
|
126
124
|
{/if}
|
|
127
125
|
{#if isLoading}
|
|
128
126
|
<CircularProgress size={spinner} thickness={thickness} />
|