Closed (fixed)
Project:
ZURB Foundation
Version:
8.x-6.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jul 2017 at 23:35 UTC
Updated:
8 Aug 2018 at 16:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
florismoriceauComment #3
hongpong commentedThere are potentially breaking changes. Can someone scope this out? We should do this. via https://github.com/zurb/foundation-sites/releases/ some highlights.
Foundation 6.4 now uses Flexbox by default. There is still a fallback to float-mode for those who absolutely must support legacy browsers, but Flexbox is our recommended approach.
Foundation 6.4 has a BRAND NEW, super powerful default grid called the XY-grid. This is a brand new 2-dimensional grid, inspired by css-grid but built on Flexbox to be usable in all-browser production environments today. Get started here: http://foundation.zurb.com/sites/docs/xy-grid.html.
Major props to @brettsmason for pushing this through. Thanks to @corysimmons, @IamManchanda, @andycochran, and @oxyc who all went above and beyond to help make this turn out the way it did.
Foundation 6.4 has shifted the Foundation JavaScript architecture to a new ES2016 module-based architecture powered by webpack. If you are using webpack or another module bundler, you can now import Foundation modules as you would other modular javascript. If you are not using a module bundler, we have packaged up drop-in compiled JS files in dist/js for backwards compatibility. Thanks to @gakimball, @DaSchTour, and @TheLarkInn for helping make this a reality.
Menus now use is-active instead if active for active state. The old active works but is deprecated and will be removed.
Menus now use align-center on the menu rather than wrapping them in a menu-centered class to center them. The old way works but is deprecated and will be removed.
Tabs no longer trigger hide/show styles based off of an aria attribute, but rather the is-active class. Users of tabs who are customizing panelActiveClass will need to add display:block; to the styles for their panelActiveClass.
The $card-margin class has been changed to be $card-margin-bottom to better align with convention. If you have changed $card-margin update it to $card-margin-bottom.
The underlying file for the responsive accordion tabs plugin has changed. If you are upgrading an old ZURB stack project you will need to change the reference to foundation-sites/js/foundation.zf.responsiveAccordionTabs.js to reference foundation-sites/js/foundation.responsiveAccordionTabs.js instead.
Comment #4
hongpong commentedComment #5
doostinharrell commentedI'm going to follow this task in hopes that I can work up some time this week to update and test 6.4.1.
@HongPong how do you feel about enabling both legacy and XY grids in compiled css? Although it will bloat css to some degree it will prevent breaking existing layouts and provide themers with the option of creating layouts based on XY Grid.
Let me know if you have any better ideas here.
Comment #6
hongpong commentedIt would be ideal if there were some way to toggle them in scss, like you just enable XY grid if you need that, legacy if you need that. Is that an option?
Comment #7
doostinharrell commentedYes, you can via an import partial. Maybe we just update the readme with that info then.
Comment #8
doostinharrell commentedWe will just need to make it clear that zurb_foundation currently relies on the legacy class naming convention for backwards compatibility with all theme provided templates and layouts. If they want to use XY Grid in their theme, and they disable all legacy grid import partials (float/flex), they will need to uncomment any XY Grid partial imports, copy over all zurb_foundation base theme templates / layouts and update accordingly.
Comment #9
hongpong commentedSo we would leave it set on legacy and show people how to switch to XY easily then? That seems okay under the circumstances to me. I haven't tried XY yet, will have to check it out.
Comment #10
doostinharrell commentedYes, enabling XY Grid along-side the legacy grid would be simple via the import partial however if they want to disable the legacy grid completely this is where they are going to have issues as it will break theme provided templates and panel layouts. This would require that they modify all necessary files to use new wrappers and classes. I'll do some more testing on this as well however I think documenting this in detail should be sufficient.
Legacy Grid (float / flex)
XY Grid
Comment #11
doostinharrell commentedI was able to address this issue along with issue #2895755.See: https://www.drupal.org/node/2895755Comment #12
serg2 commentedNow that #2895755: Remove Bower and use npm instead is fixed I guess we should return here.
@Doostinharrell your patch 5 is very comprehensive, do you want to pull it over here?
Comment #13
doostinharrell commented@serg2 yes, I need to make a few adjustments then I will add a new patch here.
Comment #14
doostinharrell commentedComment #15
doostinharrell commentedAttached is a patch that successfully updates Foundation to 6.4.1. This includes updates to both zurb_foundation base theme and STARTER to use Float Grid by default. I also added some additional documentation to STARTER.scss explaining how disabling Float Grid in favor or XY Grid would also mean they have to migrate base theme templates to their sub theme to rework markup for XY Grid compatibility.
Comment #16
doostinharrell commentedComment #17
serg2 commentedLooking great, loads of changes. For now the only thing i can see so far is Gulp is set to 3.9.0 for STARTER and 3.9.1 Zurb. The rest looks very clean but I will install and test out properly tomorrow.
Comment #18
serg2 commentedI have installed and poked around. Everything that was working is still working. The help-text added is helpful and I think it is in the right place. The patch follows the same patterns as before, providing the new options but not enforcing them. Proving the settings for the new 6.4 features but not importing them is definitely the right way to go, making it easier for those who want to use them to do so and those who don't can ignore.
Comment #19
serg2 commentedComment #20
doostinharrell commentedComment #21
serg2 commented@doorstinharrel, do you want to push this along to 6.4.3 before this gets committed?
Comment #22
kevinmsrs commented$offcanvas-sizeand$offcanvas-vertical-sizeis deprecated.scss/_settings.scssandSTARTER/scss/_settings.scssshould be updated to$offcanvas-sizesand$offcanvas-vertical-sizes, respectively.Comment #23
doostinharrell commented@serg2
Yes, I think that would be best. Tied up with other client work at the moment but I will try to get to this as soon as I can, possibly today.
Comment #24
serg2 commentedSeems like a good place to note that we have a deprecation warning on offcanvas-size:
All that needs to change is:
$offcanvas-size: (to$offcanvas-sizes: ($offcanvas-vertical-size: (to$offcanvas-vertical-sizes: (in _settings.scss
Comment #25
hongpong commentedSerg2 here is a patch just for those notices. I didn't want to mess with the big main patch right now.
Comment #26
abrammWhat is the status of this issue?
As far as I understand, the patch is waiting for an update to 6.4.3?
Comment #27
steveoriolHere is the patch for 6.4.3 to test...
Comment #28
serg2 commentedComment #29
serg2 commentedThanks for the patch, I will test it today.
Comment #30
cumhur commentedI applied the patch and everthing looks good.22 Feb another dev version released but this patch didn t include the version why ?
Still looks 6.3. But this patch zurb_foundation--starter-installs-outdated-version-of-foundation--2895757--27.patch
use 6.4
Comment #31
cumhur commentedDear serg2,
when will you test the patch ? "I will test it today." :) about a month ago
Best regards
Comment #32
serg2 commentedThe patch from #30 still applies. I have tested it and looked though it and cannot see any issues with it. I think we should commit it.
Comment #34
hongpong commentedThank you everyone for working on this massive patch. I sincerely hope it works smoothly!!