@placeholderco/placeholder-ui 2.6.5 → 2.6.6
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.
|
@@ -52,6 +52,8 @@
|
|
|
52
52
|
drawerButtonPosition?: 'left' | 'right';
|
|
53
53
|
/** Custom icon for the drawer toggle button */
|
|
54
54
|
drawerButtonIcon?: string;
|
|
55
|
+
/** Accessible label for the drawer toggle button (it has no visible text) */
|
|
56
|
+
drawerButtonLabel?: string;
|
|
55
57
|
/** Callback when drawer toggle is clicked */
|
|
56
58
|
onDrawerButtonClick?: () => void;
|
|
57
59
|
}
|
|
@@ -72,6 +74,7 @@
|
|
|
72
74
|
showDrawerButton = false,
|
|
73
75
|
drawerButtonPosition = 'right',
|
|
74
76
|
drawerButtonIcon = iconHamburger,
|
|
77
|
+
drawerButtonLabel = 'Open navigation menu',
|
|
75
78
|
onDrawerButtonClick = undefined
|
|
76
79
|
}: NavbarProps = $props();
|
|
77
80
|
|
|
@@ -96,6 +99,7 @@
|
|
|
96
99
|
svg={drawerButtonIcon}
|
|
97
100
|
variant={drawerButtonVariant}
|
|
98
101
|
size="1.25rem"
|
|
102
|
+
ariaLabel={drawerButtonLabel}
|
|
99
103
|
onclick={onDrawerButtonClick}
|
|
100
104
|
class="drawer-btn drawer-btn-left"
|
|
101
105
|
/>
|
|
@@ -153,6 +157,7 @@
|
|
|
153
157
|
svg={drawerButtonIcon}
|
|
154
158
|
variant={drawerButtonVariant}
|
|
155
159
|
size="1.25rem"
|
|
160
|
+
ariaLabel={drawerButtonLabel}
|
|
156
161
|
onclick={onDrawerButtonClick}
|
|
157
162
|
class="drawer-btn drawer-btn-right"
|
|
158
163
|
/>
|
|
@@ -39,6 +39,8 @@ export interface NavbarProps {
|
|
|
39
39
|
drawerButtonPosition?: 'left' | 'right';
|
|
40
40
|
/** Custom icon for the drawer toggle button */
|
|
41
41
|
drawerButtonIcon?: string;
|
|
42
|
+
/** Accessible label for the drawer toggle button (it has no visible text) */
|
|
43
|
+
drawerButtonLabel?: string;
|
|
42
44
|
/** Callback when drawer toggle is clicked */
|
|
43
45
|
onDrawerButtonClick?: () => void;
|
|
44
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@placeholderco/placeholder-ui",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.6",
|
|
4
4
|
"description": "A modern, customizable Svelte 5 UI component library with comprehensive theming support. Re-brand it with a single config object.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Placeholderco",
|