Skip to content

Commit

Permalink
chore(@clayui/navigation-bar): add messages as optional prop
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Aug 22, 2024
1 parent fd7f4c7 commit 6bc4bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/clay-navigation-bar/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface IProps
/**
* Defines aria-label messages to display for the screen reader.
*/
messages: {
messages?: {
close: 'Close';
open: 'Open';
trigger: '{0} Menu, Current Page: {1}';
Expand Down Expand Up @@ -120,7 +120,7 @@ function ClayNavigationBar({
aria-expanded={expanded}
aria-label={sub(messages.trigger, [
expanded ? messages.close : messages.open,
triggerLabel,
triggerLabel ?? '',
])}
className={classNames(
'navbar-toggler',
Expand Down

0 comments on commit 6bc4bf6

Please sign in to comment.