Skip to content

Commit 93fc172

Browse files
committed
fix(ui): add identifier class to roo tnode of SidenavigationGroup
- add class to component - fix test accrodingly Signed-off-by: Franz Heidl <f.heidl@sap.com>
1 parent 355b0f3 commit 93fc172

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

packages/ui-components/src/components/SideNavigationList/SideNavigationList.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ export interface SideNavigationListProps {
2929
* @see {@link SideNavigationListProps}
3030
*/
3131
export const SideNavigationList = ({ children }: SideNavigationListProps): ReactNode => {
32-
return <ul className={`${sideNavListStyles}`}>{children}</ul>
32+
return <ul className={`juno-sidenavigation-list ${sideNavListStyles}`}>{children}</ul>
3333
}

packages/ui-components/src/components/SideNavigationList/SideNavigationList.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ describe("SideNavigationList", () => {
2222

2323
const list = screen.getByRole("list")
2424
expect(list).toBeInTheDocument()
25-
expect(list).toHaveClass("jn:bg-theme-sidenav-list")
26-
expect(list).toHaveClass("jn:space-y-[0.25rem]")
25+
expect(list).toHaveClass("juno-sidenavigation-list")
2726
})
2827

2928
test("renders children within the SideNavigationList", () => {

0 commit comments

Comments
 (0)