Skip to content

Commit 817bf5f

Browse files
fix(@clayui/core): fixes build bug in applications
Since we introduced a new API and made it required, this would be a major change because we would have to update all applications that use the component to define the `aria-label`, so the ideal would be to make the API optional. Since we have a warning message, this will notify developers to pay attention to this and configure it according to each use case.
1 parent abe89e6 commit 817bf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/clay-core/src/vertical-nav/VerticalNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type Props<T extends Record<string, any> | string> = {
3939
/**
4040
* Flag to define aria-label.
4141
*/
42-
'aria-label': string;
42+
'aria-label'?: string;
4343

4444
/**
4545
* The component contents.

0 commit comments

Comments
 (0)