JedWatson / JedWatson/react-select
Styles not loading properly when using react-select with web-components
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Thanks for developing react-select!
I've encountered an issue while trying to use react-select with BeyondJS, a framework that implements microfrontends based on web-components.
Bug report
The problem I'm facing is that the styles for react-select are not loading properly when it is used within a web-component in BeyondJS. Although react-select functions as expected, it appears without any styling. This suggests that the styles are not being added correctly.
To demonstrate the problem, I have recorded a video and created a Github repository with a use case example:
To recreate this issue, you can clone the repository and follow the steps as I've described in the README file.
I hope this helps in understanding the issue I am facing. I appreciate your support and hope to see this issue resolved soon.
Note: I am using the current major (v5) version of react-select.
Thanks in advance!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone the linked beyond-react-select reproduction and follow its README steps first. Compare the component inside BeyondJS web-components with the expected styled output, then trace how react-select styles are loaded in that setup. Done means the styles load correctly in the reproduction while normal v5 behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100