Skip to content

Styles not working as expected #142

Closed
@sagar-accacia

Description

@sagar-accacia

Describe the bug
Element Style not applied to the resizeable element instead is applied to the inner element.

To Reproduce
Steps to reproduce the behavior:

  1. Create a space
  2. Try to pass styles directly to the space
  3. Inspect in DevTools
  4. Styles applied to inner div

Expected behavior
Styles should be applied to the same div/element which the space is created in.

Screenshots
image
image

Package versions (please complete the following information):

  • "react-spaces": "^0.4.1"
  • "react": "18.1.0"
  • "next": "13.5.6"

Desktop (please complete the following information):

  • OS: macOS
  • Browser chrome
  • Version 120.0.6099.109

Code sandbox link
https://codesandbox.io/p/sandbox/sparkling-morning-gjjlz4?file=%2Fsrc%2FApp.js%3A28%2C37

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions