Tailwind v3/v0.10 -> Tailwind v4/v0.12 migration silently removes global form styles
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- ドキュメント
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- react, tailwindcss
調査の方向性
まず、レポートで説明されている legacy の flowbite-react/tailwind と flowbite/plugin のセットアップを、Tailwind v4 の flowbite-react/plugin/tailwindcss import および .flowbite-react/class-list.json パスと比較します。フォームセレクターとグローバルスタイルに違いがあるかを確認し、そのうえで、動作と推奨される置き換えを説明する必要がある移行または互換性のドキュメントを特定します。意図された動作と移行ガイダンスが明確に文書化されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
We ran into a fairly subtle migration issue upgrading from:
- Flowbite React v0.10.x + Tailwind v3
to - Flowbite React v0.12.x + Tailwind v4
and wanted to document the findings and ask for guidance on the intended migration path.
What changed for us
After upgrading, a number of input fields across our application suddenly lost their styling (especially padding/spacing), including components that do not use Flowbite React at all.
Initially this was confusing because the affected components were unrelated to Flowbite.
After tracing through the generated CSS, we found that the old integration path implicitly injected global form styles, while the new Tailwind v4 integration no longer does.
Flowbite React 0.10 injects global styles
With Tailwind v3 we had:
const flowbite = require("flowbite-react/tailwind");
plugins: [
flowbite.plugin(),
]
It seems that flowbite.plugin() internally routed through the standalone flowbite/plugin.
That plugin appears to have had forms = true enabled by default and injected global base styles via addBase(...), including selectors like:
[type='text'],
[type='email'],
textarea,
select {
padding: .5rem .75rem;
...
}
Flowbite React v0.12 no longer creates global stzles
With Tailwind v4 / Flowbite React v0.12 the recommended setup is
@import "flowbite-react/plugin/tailwindcss";
@source "../../.flowbite-react/class-list.json";
This new CSS-first integration path no longer appears to route through the standalone flowbite/plugin, and the global form base styles disappear.
As a result:
- unrelated inputs lose padding/styling
- applications may experience visual regressions outside Flowbite components
- the migration impact is difficult to trace back to Flowbite
Questions
- Is this an intended behavioral change? Is my analyis correct that flowbite v0.10 injected global styles?
- Is there an officially recommended migration path for users who implicitly depended on the old global form reset behavior?
- Would it make sense to mention this in the migration docs / compatibility docs?
This was particularly difficult to debug because the regressions appeared in components that did not use Flowbite at all.
- 主要言語
- TypeScript
- スター
- 2.1k
- フォーク
- 502
- 平均マージ
- 19時間 16分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
themesberg/flowbite-react のほかの issue
-
fix(Carousel): can't give dynamic children to Carousel対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン:bug: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
themesberg/flowbite-react#1469 · コメント 1 件 ·
-
Pagination is broken if there is only one page対応中かも @Mukilan1600 が 1020 日前に担当しました。 オープン:bug: bug confirmed good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
themesberg/flowbite-react#1048 · コメント 7 件 · リアクション 1 件 ·
-
:books: documentation help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
themesberg/flowbite-react#1696 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
themesberg/flowbite-react#1693 ·
-
NavbarCollapse closes when toggling a MegaMenuDropdown on mobile再び着手できるかも @sarthak-11231 が 44 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
themesberg/flowbite-react#1686 · コメント 2 件 ·
themesberg/flowbite-react の issue をすべて見る
似ている issue
-
ArcGIS Maps SDK for JavaScript c-carousel calcite-design-tokens enhancement impact - p3 - not time sensitive needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Esri/calcite-design-system#15565 ·
メンテナーはふだん 1 日以内に返信
-
customer-reported question
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Azure/azure-rest-api-specs#48017 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
microsoft/TypeScript#65370 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ts-graphviz/ts-graphviz#1904 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信