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

refactor: style specific sticky columns in carbon row #6351

Merged
merged 8 commits into from
Nov 18, 2024

Conversation

devadula-nandan
Copy link
Contributor

Closes #6268

this pr refactors #4458, to apply backgrounds only on sticky elements, thus fixing ai-lable variants of datagrid

note: there is still a design conflict if we wanna use ai-lable with sticky column.

What did you change?

packages/ibm-products-styles/src/components/Datagrid/styles/_datagrid.scss

How did you test and verify your work?

storybook

@devadula-nandan devadula-nandan requested a review from a team as a code owner November 4, 2024 11:58
@devadula-nandan devadula-nandan requested review from elycheea and sangeethababu9223 and removed request for a team November 4, 2024 11:58
Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit fc5f1a9
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/673784e3bc78700008adba41
😎 Deploy Preview https://deploy-preview-6351--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 4, 2024

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit fc5f1a9
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/673784e3158b0200088bdf56
😎 Deploy Preview https://deploy-preview-6351--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.61%. Comparing base (27fc332) to head (fc5f1a9).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6351      +/-   ##
==========================================
+ Coverage   79.58%   79.61%   +0.02%     
==========================================
  Files         394      394              
  Lines       12861    12861              
  Branches     4266     4266              
==========================================
+ Hits        10236    10239       +3     
+ Misses       2625     2622       -3     
Components Coverage Δ
ibm-products ∅ <ø> (∅)
ibm-products-web-components ∅ <ø> (∅)

Copy link
Member

@sangeethababu9223 sangeethababu9223 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@elycheea elycheea left a comment

Choose a reason for hiding this comment

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

Ooh, the conflict of sticky columns with an AI row is kind of interesting.

With sticky background Matching first column background
image image

Documentation for our designers ... without the background, we run into this unfortunate scenario when using sticky columns:

image

That aside, I do think this fix resolves most cases.
There is a small fix I think we still need to make on the frozen column header (and when hovered).

Frozen header Frozen header with hover
image image

@devadula-nandan
Copy link
Contributor Author

@elycheea fixed it, also added back useMemo on header story (removed from here) as i noticed render issues when resizing in header story

Copy link
Contributor

@elycheea elycheea left a comment

Choose a reason for hiding this comment

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

One more tiny change —

image

I think we should probably increase the z-index of the frozen header to prevent the AI label from peeking out from behind it. :)

@devadula-nandan devadula-nandan added this pull request to the merge queue Nov 18, 2024
Merged via the queue into carbon-design-system:main with commit f4b1706 Nov 18, 2024
30 of 31 checks passed
@devadula-nandan devadula-nandan deleted the 6268 branch November 18, 2024 04:47
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.

[datagrid]: aiLabel rows lost gradient
4 participants