-
Notifications
You must be signed in to change notification settings - Fork 142
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
refactor: style specific sticky columns in carbon row #6351
Conversation
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this 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 |
---|---|
Documentation for our designers ... without the background, we run into this unfortunate scenario when using sticky columns:
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 |
---|---|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f4b1706
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