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: add containerCssClass to RowMove to fix cell styling issue with icons #865

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Oct 16, 2023

  • prior to this PR we only had a cssClass option but that was adding the CSS classes directly on the .slick-cell container and this was maybe ok before we added SlickGrid icons (SVG) but it's causing issue now as per attached printscreens. To address this, let's add a cellContainerCssClass that will keep "cell-reorder dnd" CSS classes on the cell container, but let's use the cssClass as a new <div> inside the slick-cell container, so this way our icon is totally separate from the slick-cell container and won't affect/conflict with its styling

in print screens below, we can see that the border under each Row Move (drag) icon is being removed for some reason, that was a styling conflict as described above

before

image

after

image

- prior to this PR we only had a `cssClass` option but that was adding the CSS classes directly on the `.slick-cell` container and this was maybe ok before we added SlickGrid icons (SVG) but it's causing issue now as per attached printscreens. To address this, let's add a `cellContainerCssClass` that will keep "cell-reorder dnd" CSS classes on the cell container, but let's use the `cssClass` as a new <div> inside the slick-cell container, so this way our icon is separate from the container and won't affect/conflict with its styling
@ghiscoding ghiscoding changed the title fix: add cellContainerCssClass to fix cell styling issue with icons fix: add containerCssClass to fix cell styling issue with icons Oct 17, 2023
@ghiscoding ghiscoding changed the title fix: add containerCssClass to fix cell styling issue with icons fix: add containerCssClass to RowMove to fix cell styling issue with icons Oct 17, 2023
@ghiscoding ghiscoding merged commit 5abad6d into master Oct 18, 2023
2 checks passed
@ghiscoding ghiscoding deleted the bugfix/row-move-css-classes branch October 18, 2023 01:02
ghiscoding pushed a commit that referenced this pull request Nov 1, 2023
ghiscoding added a commit that referenced this pull request Nov 1, 2023
* fix: regression with RowMoveManager, row could no longer be moved
- this basically rolls back PR #865
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants