Foundation-sites: Error: Base-level rules cannot contain the parent-selector-referencing character '&'

Created on 28 Jun 2017  路  6Comments  路  Source: foundation/foundation-sites

I try to use Foundation 6.4 (sass) with xy grid.

Error message:

Error: Base-level rules cannot contain the parent-selector-referencing character &. on line 311 of lib/foundation/scss/xy-grid/_classes.scss, in xy-vertical-grid-classes from line 449 of lib/foundation/scss/xy-grid/_classes.scss, in foundation-xy-grid-classes from line 10 of css/main.scss

System:

Windows 10
Ruby
Sass 3.4.24

Most helpful comment

We're going to package up fixes for this and a couple others either later today or early tomorrow

All 6 comments

Interesting, this appears to be a real bug, but node-scss did not catch it (silently doing the "right thing" by outputting a top level class). Putting together a PR to fix it, we'll get out a patch release soon once we have any more items like this straightened out

The same thing happens on line 65 and 69 of /scss/components/_accordion-menu.scss in 'zf-accordion-menu-left-right-arrows'

@coetry good catch... @IamManchanda @brettsmason within drilldown and dropdown the arrows are included only within parent classes (.drilldown and .is-dropdown-submenu-parent respectively)... do you think that should be the case for accordion menu as well?

Yes it should be ... let me see! @kball

I am facing the same issue. What do I have to do to get npm to fetch the newest, fixed version?
npm update seems not to be ready yet...

We're going to package up fixes for this and a couple others either later today or early tomorrow

Was this page helpful?
0 / 5 - 0 ratings