Draggable items break styles on dragging

I’m creating a sequence quiz and chose @hello-pangea/dnd package (which is rewritten react-beautiful-dnd and I succeeded to create a simple component but I faced a problem that when I grab draggable item it breaks other items styles:

Normal state:

While dragging:

Here are 2 columns:

Left column – simple div with indexes as I received not to create 4 droppable columns but create 1 column where I’ll just reorder items

Right Columndroppable column

Components

sequence.tsx:

'use client';

import { UUID } from 'crypto';
import { DragDropContext, OnDragEndResponder } from '@hello-pangea/dnd';
import { useState } from 'react';

import { Button, CardLayout } from '@/components';
import { SequenceOptions } from './sequence-options';

import s from './sequence.module.scss';

export const Sequence = ({
   options: opts,
   title,
   description,
   footerColor,
   headerColor,
}: TSequenceProps) => {
   const [options, setOptions] = useState<{ id: UUID | string; label: string }[]>(
      opts.map((opt, index) => ({
         id: `${index}`,
         label: opt,
      })),
   );

   const onDragEnd: OnDragEndResponder = ({ destination, source }) => {
      if (!destination) return;
      if (destination.index === source.index) return;
      if (destination.droppableId !== source.droppableId) return;

      const newOptions = Array.from(options);
      const [removed] = newOptions.splice(source.index, 1);
      newOptions.splice(destination.index, 0, removed);

      setOptions(newOptions);
   };

   return (
      <DragDropContext onDragEnd={onDragEnd}>
         <CardLayout footerColor={footerColor} headerColor={headerColor}>
            <section className={s.wrapper}>
               <section className={s.textWrapper}>
                  <h1 className={s.title}>{title}</h1>
                  <p className={s.title}>{description}</p>
               </section>

               <section className={s.sequenceWrapper}>
                  <div className={s.indexes}>
                     {options.map((_, index) => (
                        <p className={s.index} key={index}>
                           <span>{index + 1}</span>
                        </p>
                     ))}
                  </div>

                  <SequenceOptions options={options} />
               </section>

               <Button onClick={() => {}} size="s">
                  Confirm
               </Button>
            </section>
         </CardLayout>
      </DragDropContext>
   );
};

sequence-options.module.scss:

@import 'styles';

.wrapper {
   @include flex(column, center, center, 12px);
}

sequence-options.tsx:

'use client';

import { UUID } from 'crypto';
import { Droppable } from '@hello-pangea/dnd';
import { DraggableItem } from '@/components';

import s from './sequence-options.module.scss';

export const SequenceOptions = ({
   options,
}: {
   options: { label: string; id: UUID | string }[];
}) => {
   return (
      <Droppable droppableId={'sequence'}>
         {provided => (
            <div
               ref={provided.innerRef}
               {...provided.droppableProps}
               className={s.wrapper}
            >
               {options.map((option, index) => (
                  <DraggableItem
                     label={option.label}
                     id={option.id}
                     index={index}
                     key={option.id}
                  />
               ))}
            </div>
         )}
      </Droppable>
   );
};

draggable-item.tsx:

'use client';

import { Draggable } from '@hello-pangea/dnd';
import clsx from 'clsx';

import { RubicSquareIcon } from '@/icons';

import s from './draggable-item.module.scss';

export const DraggableItem = ({
   id,
   index = 0,
   label = '',
   disabled = false,
   dragging = false,
}: TDraggableItemProps) => {
   return (
      <Draggable isDragDisabled={disabled} draggableId={id} index={index}>
         {provided => (
            <div
               {...provided.dragHandleProps}
               {...provided.draggableProps}
               ref={provided.innerRef}
               className={clsx(s.item, dragging && s.dragging, disabled && s.disabled)}
            >
               <RubicSquareIcon className={s.icon} />

               <p className={s.label}>{label}</p>
            </div>
         )}
      </Draggable>
   );
};

draggable-item.module.scss:

@import 'styles';

.item {
   @include flex($align: center, $gap: 8px);

   width: 220px;
   height: 48px;

   box-sizing: border-box;

   padding: 16px;

   border-radius: 4px;

   background-color: $primary;

   cursor: grab;

   .icon {
      @include set-size(16px);

      path {
         fill: rgba($white, 0.4);

         transition: fill 0.15s ease-in-out;
      }
   }

   .label {
      text-transform: capitalize;
      font-family: $soraRegular;
      font-size: 16px;
      color: $white;
   }
}

/* STATES */

.dragging {
   .icon {
      path {
         fill: $white;
      }
   }
}

.disabled {
   opacity: 0.4;

   cursor: not-allowed;
}

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật