noph-ui 0.21.2 → 0.21.4
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.
|
@@ -94,13 +94,16 @@
|
|
|
94
94
|
{:else if isLink(attributes)}
|
|
95
95
|
<a
|
|
96
96
|
{...attributes}
|
|
97
|
+
onclick={(event) => {
|
|
98
|
+
;(onclick as MouseEventHandler<HTMLAnchorElement>)?.(event)
|
|
99
|
+
}}
|
|
97
100
|
aria-describedby={title ? uid : attributes['aria-describedby']}
|
|
98
101
|
aria-label={title || attributes['aria-label']}
|
|
99
102
|
bind:this={element}
|
|
100
103
|
class={[
|
|
101
104
|
'np-button',
|
|
102
105
|
size,
|
|
103
|
-
selected ? 'square' :
|
|
106
|
+
selected || loading ? 'square' : shape,
|
|
104
107
|
toggle ? 'toggle' : '',
|
|
105
108
|
'enabled',
|
|
106
109
|
variant,
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
<Button
|
|
16
16
|
size="xs"
|
|
17
17
|
shape="square"
|
|
18
|
-
--np-elevated-button-container-shape="var(--np-assist-chip-container-shape, var(--np-shape-corner-small))"
|
|
19
|
-
--np-outlined-button-container-shape="var(--np-assist-chip-container-shape, var(--np-shape-corner-small))"
|
|
20
18
|
--np-elevated-button-label-text-color="var(--np-assist-chip-label-text-color, var(--np-color-on-surface-variant))"
|
|
21
19
|
--np-outlined-button-label-text-color="var(--np-assist-chip-label-text-color, var(--np-color-on-surface-variant))"
|
|
22
20
|
--np-outlined-button-outline-color="var(--np-assist-chip-outline-color, var(--np-color-outline-variant))"
|