Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Bootstrap 5 #1494

Closed
16 tasks done
simonihmig opened this issue May 11, 2021 · 12 comments
Closed
16 tasks done

Support Bootstrap 5 #1494

simonihmig opened this issue May 11, 2021 · 12 comments

Comments

@simonihmig
Copy link
Contributor

simonihmig commented May 11, 2021

Trying to summarize what the minimum changes are to support Bootstrap 5.

Any kind of contributions (PRs, documentation, testing) highly welcome! Just comment here if you are interested in helping out!

/cc @jelhan

simonihmig added a commit that referenced this issue May 13, 2021
This change *pretends* that BS5 components require the same markup as BS4. This should be true for many components, but not all. Follow up PRs will be created to address the later cases, see #1494.

But at least this is better than what we had before, as the macros checks for only 4 or 5 would leave the markup for BS5 broken basically everywhere. And allows us to iterate step by step on fixing the remaining issues, with BS5 already enjoying full CI coverage.
@simonihmig simonihmig mentioned this issue Aug 6, 2021
6 tasks
@vlascik
Copy link

vlascik commented Sep 10, 2021

Also, modal dialog's close button changed the class from close to btn-close.

I have a script with more of the changes to bootstrap classes listed at https://github.com/vlascik/bootstrap4-to-5-migrator , might be of some use to you.

@simonihmig
Copy link
Contributor Author

Thanks @vlascik, I'll look into it! Or do you have time for a PR? 😀

@simonihmig
Copy link
Contributor Author

Also, modal dialog's close button changed the class from close to btn-close.

#1614 should fix this.

@simonihmig
Copy link
Contributor Author

Seems we are done here! 🎉

Wondering if we should make BS5 the default for our upcoming v5? 🤔

Changing the default is not really a breaking change I think, as the version is "pinned" in ember-cli-build.js, but the new major seems a good moment to do the switch nevertheless!? @jelhan thoughts?

@vst
Copy link

vst commented Sep 18, 2021

Changing the default is not really a breaking change I think, as the version is "pinned" in ember-cli-build.js, but the new major seems a good moment to do the switch nevertheless!? @jelhan thoughts?

I agree.

@jelhan
Copy link
Contributor

jelhan commented Sep 25, 2021

Changing the default is not really a breaking change I think, as the version is "pinned" in ember-cli-build.js, but the new major seems a good moment to do the switch nevertheless!? @jelhan thoughts?

Fully agree. Let's switch to Bootstrap 5. 👍

@vst
Copy link

vst commented Sep 29, 2021

Quick feedback, FWIW: I have been using v5.0.0-beta.0 on BS5 for the last few days. I did not notice any regressions or errors so far, at least not due to ember-bootstrap.

@simonihmig
Copy link
Contributor Author

Thanks @vst for the feedback! There was one issue related to alerts though, which was fixed in #1620, but this is yet to be released! fyi

@simonihmig
Copy link
Contributor Author

BTW, I started working migrating the docs app (ember-bootstrap.com) to BS5, and noticed some missing margins for forms. So some minor issues still need to be sorted out...

@vst
Copy link

vst commented Sep 29, 2021

@simonihmig Got it, thanks! Will report anything we bump into.

@martinbarilik
Copy link

beta.0 still requires "@ember/render-modifiers": "^1.0.2", can we drop it and use 2.0.0 instead so we remove

Versions of modifier manager capabilities prior to 3.22 have been deprecated. You must update to the 3.22 capabilities.

message ? 2.0.0 render-modifier was released just recently

@simonihmig
Copy link
Contributor Author

@martinbarilik sure! I have yet to setup a successor to dependabot here, that would do these dependency updates automatically. But if you have the time, a PR would certainly be welcome! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants