-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some components in nhsuk-frontend now inherit nhsukAttributes, a macro that exists in a sibling folder to the components folder.
- Loading branch information
1 parent
926cb9e
commit 49c0307
Showing
8 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "button/macro.njk" import button as source -%} | ||
{% from "components/button/macro.njk" import button as source -%} | ||
{%- macro button(params) -%} | ||
{{- source(params) if params.href else source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "checkboxes/macro.njk" import checkboxes as source -%} | ||
{% from "components/checkboxes/macro.njk" import checkboxes as source -%} | ||
{%- macro checkboxes(params) -%} | ||
{{- source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "date-input/macro.njk" import dateInput as source -%} | ||
{% from "components/date-input/macro.njk" import dateInput as source -%} | ||
{%- macro dateInput(params) -%} | ||
{{- source(decorate(params, params.decorate, "dateInput")) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "input/macro.njk" import input as source %} | ||
{% from "components/input/macro.njk" import input as source %} | ||
{%- macro input(params) -%} | ||
{{- source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "radios/macro.njk" import radios as source -%} | ||
{% from "components/radios/macro.njk" import radios as source -%} | ||
{%- macro radios(params) -%} | ||
{{- source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "select/macro.njk" import select as source -%} | ||
{% from "components/select/macro.njk" import select as source -%} | ||
{%- macro select(params) -%} | ||
{{- source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from "textarea/macro.njk" import textarea as source -%} | ||
{% from "components/textarea/macro.njk" import textarea as source -%} | ||
{%- macro textarea(params) -%} | ||
{{- source(decorate(params, params.decorate)) -}} | ||
{%- endmacro %} |