Skip to content

Commit

Permalink
fix: change class name
Browse files Browse the repository at this point in the history
  • Loading branch information
coratgerl committed Dec 26, 2024
1 parent 67ea613 commit 7107524
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/nav-link-item-with-hash.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ test.describe('basic test', async () => {

await page.goto(`http://localhost:${appPort}/`);

await page.locator('.buttonHamburger').click();
await expect(page.locator('.navScreen')).toBeVisible();
await page.locator('.rspress-mobile-hamburger').click();
await expect(page.locator('.rspress-nav-screen')).toBeVisible();

await page.getByRole('link', { name: 'PageC' }).click();
await expect(page.locator('.navScreen')).not.toBeVisible();
await expect(page.locator('.rspress-nav-screen')).not.toBeVisible();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function NavHamburger(props: Props) {
<button
onClick={toggleScreen}
aria-label="mobile hamburger"
className={`${isScreenOpen ? styles.active : ''} buttonHamburger ${
className={`${isScreenOpen ? styles.active : ''} rspress-mobile-hamburger ${
styles.navHamburger
} text-gray-500`}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-default/src/components/NavScreen/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function NavScreen(props: Props) {
}, [isScreenOpen]);
return (
<div
className={`${styles.navScreen} ${isScreenOpen ? styles.active : ''} navScreen`}
className={`${styles.navScreen} ${isScreenOpen ? styles.active : ''} rspress-nav-screen`}
ref={screen}
id="navScreen"
>
Expand Down

0 comments on commit 7107524

Please sign in to comment.