-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: add line height to unsortable columns on sortable datatable (#9311) #11404
fix: add line height to unsortable columns on sortable datatable (#9311) #11404
Conversation
DCO Assistant Lite bot All contributors have signed the DCO. |
I have read the DCO document and I hereby sign the DCO. |
recheck |
✅ Deploy Preview for carbon-components-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-components-react ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@pmweeks98 could you share a link to the storybook where the original bug can be reproduced to compare with the fix made here? I'm having a hard time determining what/where this fixes the column headers. |
@tay1orjones this is the repro I saw in the issue... https://codesandbox.io/s/happy-minsky-n5i5s?file=/index.html |
@jnm2377 Oh thanks! I missed that. Yeah I can't repro in react. If this passes the VRT checks then I think it's alright? |
@tay1orjones can you advise on how to get a storybook with my changes in it? |
@pmweeks98 To edit the storybook you can modify the data table |
@tay1orjones @jnm2377 have updated storybook to have a table with unsortable columns on sortable table, table size is set to xl now, not sure if that is desired, can ye have a look? |
@pmweeks98 Cool! Yeah I can see the fix when I toggle the line-height off in the dev tools. They don't align correctly and then with the fix turned on it aligns exactly as it should. aligns.properly.with.the.line.height.applied.movThanks for adding the story to demo the fix. I think in this case we can probably remove it now since there isn't much of a need for a story demonstrating this beyond to validate this bug. Once removed this looks good to me to merge 👍 |
df2d1a2
to
d753cef
Compare
@tay1orjones removed |
@jnm2377 ping |
Closes #9311
Changed
Added lineheight to ensure the correct font size is used in unsortable columns
Testing / Reviewing
{{ Add descriptions, steps or a checklist for how reviewers can verify this PR works or not }}