Skip to content

Commit

Permalink
Merge pull request #5894 from veroglez/LPD-42404
Browse files Browse the repository at this point in the history
fix(@clayui/core): Adapt snapshots
  • Loading branch information
matuzalemsteles authored Nov 25, 2024
2 parents b312fea + c218410 commit 80ad70d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 44 deletions.
6 changes: 1 addition & 5 deletions packages/clay-navigation-bar/src/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@ const ClayNavigationBarIcon = ({
'aria-current': active
? ariaCurrent ?? undefined
: undefined,
children: (
<span className="navbar-text-truncate">
{child.props.children}
</span>
),
children: <span>{child.props.children}</span>,
className: classNames(
'nav-link',
child.props.className?.replace('nav-link', ''),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ exports[`ClayNavigationBar collapses the previously expanded dropdown when trigg
class="nav-link active"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand All @@ -33,9 +31,7 @@ exports[`ClayNavigationBar collapses the previously expanded dropdown when trigg
class="nav-link btn"
type="button"
>
<span
class="navbar-text-truncate"
>
<span>
Item 2
</span>
</button>
Expand Down Expand Up @@ -91,9 +87,7 @@ exports[`ClayNavigationBar renders 1`] = `
class="nav-link active"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand All @@ -105,9 +99,7 @@ exports[`ClayNavigationBar renders 1`] = `
class="nav-link btn"
type="button"
>
<span
class="navbar-text-truncate"
>
<span>
Item 2
</span>
</button>
Expand All @@ -119,9 +111,7 @@ exports[`ClayNavigationBar renders 1`] = `
class="nav-link"
href="#3"
>
<span
class="navbar-text-truncate"
>
<span>
Item 3
</span>
</a>
Expand Down Expand Up @@ -209,9 +199,7 @@ exports[`ClayNavigationBar renders a dropdown when clicking the trigger element
class="nav-link active"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand All @@ -223,9 +211,7 @@ exports[`ClayNavigationBar renders a dropdown when clicking the trigger element
class="nav-link btn"
type="button"
>
<span
class="navbar-text-truncate"
>
<span>
Item 2
</span>
</button>
Expand Down Expand Up @@ -280,9 +266,7 @@ exports[`ClayNavigationBar renders when passing more than one active item 1`] =
class="nav-link"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand All @@ -295,9 +279,7 @@ exports[`ClayNavigationBar renders when passing more than one active item 1`] =
class="nav-link active btn"
type="button"
>
<span
class="navbar-text-truncate"
>
<span>
Item 2
</span>
</button>
Expand All @@ -309,9 +291,7 @@ exports[`ClayNavigationBar renders when passing more than one active item 1`] =
class="nav-link"
href="#3"
>
<span
class="navbar-text-truncate"
>
<span>
Item 3
</span>
</a>
Expand Down Expand Up @@ -370,9 +350,7 @@ exports[`ClayNavigationBar renders with a single item 1`] = `
class="nav-link active"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand Down Expand Up @@ -431,9 +409,7 @@ exports[`ClayNavigationBar throws a warning when passing more than one active pr
class="nav-link active"
href="#1"
>
<span
class="navbar-text-truncate"
>
<span>
Item 1
</span>
</a>
Expand All @@ -446,9 +422,7 @@ exports[`ClayNavigationBar throws a warning when passing more than one active pr
class="nav-link active btn"
type="button"
>
<span
class="navbar-text-truncate"
>
<span>
Item 2
</span>
</button>
Expand Down

0 comments on commit 80ad70d

Please sign in to comment.