themesberg / themesberg/flowbite
Prefixes in components
Open
@zoltanszogyenyi is already working on this.
Since Jul 6, 2022.
bug
enhancement
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Tooltip and Dropdown components don't work when tailwindcss prefix is set.
To Reproduce
Steps to reproduce the behavior:
- Setup prefix in the tailwind.config.js:
module.exports = {
prefix: "tw-",
...
}
- Create a tooltip component https://flowbite.com/docs/components/tooltips/
- Add prefixes to default styles
- Launch your app and see tooltip not working
Expected behavior
Components support custom prefixes
Desktop (please complete the following information):
- OS: MacOS
- Browser: Chrome
- Version: 100.0.4896.75
Additional context
Components have default tailwindcss classes hardcoded: https://github.com/themesberg/flowbite/blob/main/src/components/tooltip.js#L70 and there is no prefix injection there
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.
Assessment
This issue has not been assessed yet.