input type="file"にもform-controlが適用 こちらは実装レイアウトがいろいろなので適宜改修。 data-toggle="modal"などのdata属性値が変更 data-toggle="modal"はdata-bs-toggle="modal"のようにbsが付くようになる dropdownも同様 modal内のCloseボタン 以前の実装例 <div class="modal-header"> <h5 class="modal-title">Title</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div>
![bootstrap4 から bootstrap5 への移行メモ - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/f1db0350f996652f0541a13cfe7b786f0c1927b0/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9Ym9vdHN0cmFwNCUyMCVFMyU4MSU4QiVFMyU4MiU4OSUyMGJvb3RzdHJhcDUlMjAlRTMlODElQjglRTMlODElQUUlRTclQTclQkIlRTglQTElOEMlRTMlODMlQTElRTMlODMlQTImdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZ0eHQtY2xpcD1lbGxpcHNpcyZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWQ2MTgwNTdkOGFmNDE0ODZjOTRjODAwMTI4Yjc1MjJi%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTcxNiZ0eHQ9JTQwbW9yb2hvc2hpJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9MzImdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0wZjk4MWUwZjMzZTBmMTVjNTJlNjAyODhhOGRjOTlhMg%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3Df94c063d79746990594256613599b6bb)