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
update admin to Bootstrap 5.3.2 #6173
base: master
Are you sure you want to change the base?
Conversation
admin bootstrap 5.3.2
dang... forgot to remove the local bootstrap css file (old one) |
Oh. I didn't even think to check that. We might still want to keep that, but would have to ensure that people delete the old local file, or maybe drop the But, I'm not sure how many people will want to override their admin Bootstrap files with local ones. Way less admin traffic, plus browser caching, both make it kinda moot. |
Thanks. It's a lotta work to redo all that markup. |
I'll leave the decision to you, but personally I don't see a point of loading a local css file when it can be loaded from a CDN. If someone insists on overriding it with a local version for whatever reason, they'll find a way, I guess... |
I've not looked at the code, but I know that there are major Bootstrap class differences between 3 and 5. Does Bootstrap 5 provide a polyfill? I've got a ton of plugins that have been reworked to use the Bootstrap 3 classes and it's going to be a right PITA if not. |
No, BS5 does not provide a polyfill, but there is an active project to support IE11: https://github.com/coliff/bootstrap-ie11 |
Suggest deferring merge until after 2.0.0 release. |
It's not so much that it would be a PITA to update, but it will make it very difficult for a plugin to support both the BS3 and BS5 requirements in a single admin directory structure. |
Can BS3 markup (class names) be left in-place and BS5 classes be added alongside, without causing undesired side-effects? ie: instead of "replacing BS3 classes with BS5 classes", can the BS5 classes be "added", for compatibility with both, depending on whether BS3 or BS5 "core" is installed/loaded in the store? I'm talking about plugins having both BS3 and BS5 markup. NOT CORE ZC CODE. |
In theory, they can coexist, but it would require loading both BS3 and BS5 libraries, and it could be challenging to avoid visual or javascript errors. It's definitely something worth testing - can you think of any plugins that have BS3 admin pages? However, in the long run, it would probably be best to transition to BS5 and squeeze out BS3... |
No, my point is that the site would only load EITHER 3 or 5, never both.
lat9 was talking about numerous plugins she's built for current ZC using BS3. And having to maintain them to work on both old and new sites. I'm trying to determine how safe it is to stuff both BS3 and BS5 markup into those plugins, for compatibility with both, so that if a store has BS3 it'll work, and if it instead has BS5 it'll work |
But if the site doesn't load BS5, how will the core admin be updated to BS5? You need to load BS5 for admin core, and you would need to either load BS3 for the plugins or modify markup in the plugins for BS5. Or am I missing your point? I was under the impression your idea was to allow plugins to use BS3 while core admin uses BS5, and then plugins could eventually be updated to BS5.
I think this would be OK, because "float-end pull-right" won't cause problems and the plugin will work on both BS3 and BS5. |
Some of the plugins I maintain that have been converted to BS3 mark-up are: Edit Orders, ZCA Bootstrap Template (its color-definition tool), PayPal Restful's admin notifications, Google Product Search Feeder II, SiteMap XML, Clone a Template, Image Handler ... and the list goes on. Also various commercial plugins and site-specific admin customizations (sigh). |
Awesome, thanks! I'll play with it tomorrow - kinda like the idea of loading BS5 for admin core and BS3 for backward plugin compatibility. Just not sure if it'll work, hehe... |
Ya, my point was that we could leave the ZC core admin using BS5 (when this is merged), but plugin authors would update their plugins to contain both BS3 and BS5 styles in their custom admin pages. That way whether the store is using BS3 or using BS5 (not both at the same time), the plugins would still display properly. |
I've tried my best, but the idea of running BS3 and BS5 at the same time just doesn't play well. There's always something that's conflicting and I couldn't find a way to allow current plugins to run normally without updating their markup. Sorry @lat9 :) However, I did check Edit Orders and Image Handler and there's minimal markup to update, after which it could simultaneously work on either BS3 or BS5 (meaning easier to maintain future updates). |
Agreed. That'll never be a possibility. (specifically, can never install and load BS3 and BS5 JS/CSS at same time).
Excellent. That'll make it easier on both the maintainer (add the markup and release) and on the storeowner (just drop it in and it works). |
update admin to Bootstrap 5.3.2