Skip to content

[DataGridPro] Fix double top border in header filters#14375

Merged
MBilalShafi merged 4 commits intomui:masterfrom
MBilalShafi:header-filter-border-fix
Aug 29, 2024
Merged

[DataGridPro] Fix double top border in header filters#14375
MBilalShafi merged 4 commits intomui:masterfrom
MBilalShafi:header-filter-border-fix

Conversation

@MBilalShafi
Copy link
Member

@MBilalShafi MBilalShafi commented Aug 28, 2024

Spotted while working on #14373

Before After
image image

Before Preview: https://deploy-preview-14366--material-ui-x.netlify.app/x/react-data-grid/filtering/header-filters/
After Preview: https://deploy-preview-14375--material-ui-x.netlify.app/x/react-data-grid/filtering/header-filters/

Fixes

  1. Double top border in header filters
  2. Messed up scrollbar fillers' borders

@MBilalShafi MBilalShafi added type: bug It doesn't behave as expected. scope: data grid Changes related to the data grid. design This is about UI or UX design, please involve a designer. feature: Filtering on header Related to the header filtering (Pro) feature labels Aug 28, 2024
@mui-bot
Copy link

mui-bot commented Aug 28, 2024

Deploy preview: https://deploy-preview-14375--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 84f4c17

@MBilalShafi MBilalShafi requested review from a team and kenanyusuf August 28, 2024 13:24
@MBilalShafi MBilalShafi marked this pull request as ready for review August 28, 2024 13:24
@dosubot dosubot bot added the size:S label Aug 28, 2024
Copy link
Member

@kenanyusuf kenanyusuf left a comment

Choose a reason for hiding this comment

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

Nice spot, looks good to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Minor issue, if you look close enough the border doesn't extend all the way over the vertical scrollbar. If you address this, also make sure it looks fine with top pinned rows.

image

Copy link
Contributor

Choose a reason for hiding this comment

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

With the new changes it messes the border in bottom pinned rows. I don't think we should be removing the top-border where there is one, it seems like we should be adding a bottom-border where one is needed.

image

Copy link
Member Author

Choose a reason for hiding this comment

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

With the new changes it messes the border in bottom pinned rows. I don't think we should be removing the top-border where there is one, it seems like we should be adding a bottom-border where one is needed.

Yes, I noted it too. On it. Thanks for identifying.

Copy link
Member Author

@MBilalShafi MBilalShafi Aug 29, 2024

Choose a reason for hiding this comment

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

@MBilalShafi MBilalShafi requested a review from romgrk August 29, 2024 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design This is about UI or UX design, please involve a designer. feature: Filtering on header Related to the header filtering (Pro) feature scope: data grid Changes related to the data grid. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants