Skip to content

Commit

Permalink
fix: fix styling when dragging items on a mobile device (#8750)
Browse files Browse the repository at this point in the history
**Related Issue:** #8728

## Summary

- Fixes fallback ghost element styling to not overflow its container.
- adds fallback class for sortable items.
  • Loading branch information
driskull authored and Elijbet committed Feb 15, 2024
1 parent 8357a78 commit fb75f2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/calcite-components/src/assets/styles/_sortable.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@mixin sortable-helper-classes() {
.calcite-sortable--chosen,
.calcite-sortable--ghost,
.calcite-sortable--drag {
.calcite-sortable--drag,
.calcite-sortable--fallback {
position: relative;
overflow: hidden;
}

Expand Down
1 change: 1 addition & 0 deletions packages/calcite-components/src/utils/sortableComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const CSS = {
ghostClass: "calcite-sortable--ghost",
chosenClass: "calcite-sortable--chosen",
dragClass: "calcite-sortable--drag",
fallbackClass: "calcite-sortable--fallback",
};

/**
Expand Down

0 comments on commit fb75f2b

Please sign in to comment.