Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for docs and DashboardLayout component #4104

Merged
merged 11 commits into from
Sep 20, 2024

Conversation

apedroferreira
Copy link
Member

@apedroferreira apedroferreira commented Sep 16, 2024

  • Prevents autocomplete issue with search bar demo in DashboardLayout docs (Closes Search bar looks strange when filled on dark mode #4037)
  • Fixes misaligned search icon in mobile view of search/slots demo in DashboardLayout docs
  • Fixes header left spacing in desktop view when using disableCollapsibleSidebar prop
  • Fixes components not using demo iframe window width when using useMediaQuery hook
  • Fixes segments in DashboardLayout navigation item actions demo (there were extra slashes)
  • Removes slash from navigation item patterns
  • Improves navigation item pattern matching tests

https://deploy-preview-4104--mui-toolpad-docs.netlify.app/toolpad/core/react-dashboard-layout/

Before: https://mui.com/toolpad/core/react-dashboard-layout/

@apedroferreira apedroferreira added the bug 🐛 Something doesn't work label Sep 16, 2024
@apedroferreira apedroferreira self-assigned this Sep 16, 2024
@apedroferreira apedroferreira marked this pull request as ready for review September 16, 2024 18:09
@apedroferreira apedroferreira requested a review from a team September 16, 2024 18:09
@@ -230,7 +230,7 @@ describe('DashboardLayout', () => {

const { rerender } = render(<AppWithPathname pathname="/dashboard" />);

const navigation = screen.getByRole('navigation');
const navigation = screen.getAllByRole('navigation').at(-1)!;
Copy link
Member

@Janpot Janpot Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

@apedroferreira apedroferreira Sep 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah cool, there should never actually be multiple navs in the page except in these headless browser tests, but anyway doesn't hurt to add these.

Copy link
Member

@Janpot Janpot Sep 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way I look at it is that if it's hard to navigate the accessibility tree in the tests, it could be an indicator that it's going to be hard for assistive software as well.

@Janpot Janpot merged commit a4fdea4 into mui:master Sep 20, 2024
13 checks passed
@apedroferreira apedroferreira deleted the dashboard-layout-fixes branch September 20, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search bar looks strange when filled on dark mode
2 participants