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

fix(DataTable): fix padding issue with sortable, expandable DataTable #7987

Merged
merged 3 commits into from
Mar 9, 2021

Conversation

tw15egan
Copy link
Member

@tw15egan tw15egan commented Mar 4, 2021

Closes #7983

There is an issue with sortable, expandable DataTables and we have a few solutions.

Current:

Screen Shot 2021-03-04 at 1 37 05 PM

This PR:

This PR adds back in 1rem of left padding and updates the left padding of the expandable content area as well

Screen Shot 2021-03-04 at 1 35 29 PM

An alternative

This retains the current guidance (that focus is adjacent to text) but causes issues when the table header is sortable (has hover states)

Current

Screen Shot 2021-03-04 at 1 38 37 PM

Current (on website)

Screen Shot 2021-03-04 at 1 38 05 PM

Proposed alternative, with hover issue
Screen Shot 2021-03-04 at 1 34 41 PM

Changelog

Changed

  • Expandable content area now has 4rem left padding (up from 3rem)

Removed

  • Removed selector removing padding-left

Testing / Reviewing

Open to feedback on how we want to handle this scenario

@netlify
Copy link

netlify bot commented Mar 4, 2021

Deploy preview for carbon-elements ready!

Built with commit 4b144c2

https://deploy-preview-7987--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Mar 4, 2021

Deploy preview for carbon-components-react ready!

Built with commit 4b144c2

https://deploy-preview-7987--carbon-components-react.netlify.app

Base automatically changed from master to main March 8, 2021 16:35
Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

given that this is design approved now it looks good to me

@kodiakhq kodiakhq bot merged commit 1f0ee97 into carbon-design-system:main Mar 9, 2021
@tw15egan tw15egan deleted the expand-sort-fix branch March 3, 2022 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Column misalignment in a sortable, batch expansion DataTable
5 participants