reactjsmaterial-uimui-x-data-grid

How to change MUI X Data Grid footer's action buttons layout


I created a MUI X Data Grid exact demo code and noticed that the "Go to next/previous page" buttons in the footer are laid out vertically rather than horizontally as seen below:

enter image description here

I've checked my dependencies and styles but haven't found the cause. It happens even without custom styling.

Any idea how I can fix this? Could it be an issue with my MUI version, CSS overrides, or flexbox properties affecting the pagination controls?


Solution

  • I don't think it is an MUI issue. My guess is that you are overriding all button styles in a global css file, causing the page navigation buttons in MUI DataGrid to be distorted.