Closed davidhunter08 closed 2 months ago
@mikemonteith
Not rendering CSS as mixin's are undefined (eg: @include nhsuk-font($size: 16);
)
Same problem for @include mq($until: tablet)
.
@import "node_modules/nhsuk-frontend/packages/core/all.scss";
is in app.scss, does that not include mixins etc?
@mikemonteith
Not rendering CSS as mixin's are undefined (eg:
@include nhsuk-font($size: 16);
)![]()
Same problem for
@include mq($until: tablet)
.
@mikemonteith
Could you look into how to add an active class to nav items?
On the component page layout, we call in the side navigation macro from the partials folder and add this code below...
{% macro sideNavigation(config) %}
{% set config = config|addActiveAttribute(page.filePathStem | url) %}
{{ appSideNavigation(config) }}
{% endmacro %}
When the side nav item is active it should have the class app-side-navigation__item--active
and look like this...
https://github.com/nhsuk/nhsapp-frontend/issues/5