fix(mobile): ensure touch targets exceed 44x44px across bottom navigation
Deploy Canina / deploy (push) Successful in 2m10s
Deploy Canina / deploy (push) Successful in 2m10s
This commit is contained in:
1 parent
b4fdd7abb8
commit
ea4d33b6bb
2 files changed
+19
-4
No files matched your search
@@ -207,4 +207,19 @@ describe('MobileBottomNav Component', () => {
|
||||
expect(screen.getByText('مجله سلامت پت')).toBeInTheDocument();
|
||||
expect(screen.getByText('ویدیوهای بالینی')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("ensures all mobile bottom nav tabs have ergonomic touch targets with min-h-[48px]", () => {
|
||||
render(<MobileBottomNav />);
|
||||
|
||||
const homeLink = screen.getByText("خانه").closest("a");
|
||||
const menuBtn = screen.getByText("منو").closest("button");
|
||||
const shopBtn = screen.getByText("فروشگاه").closest("button");
|
||||
const accountBtn = screen.getByText("حساب من").closest("button");
|
||||
|
||||
expect(homeLink).toHaveClass("min-h-[48px]");
|
||||
expect(menuBtn).toHaveClass("min-h-[48px]");
|
||||
expect(shopBtn).toHaveClass("min-h-[48px]");
|
||||
expect(accountBtn).toHaveClass("min-h-[48px]");
|
||||
});
|
||||
|
||||
});
|
||||
Reference in new issue
Block a user