diff --git a/src/components/autosuggest/_macro-options.md b/src/components/autosuggest/_macro-options.md index d007be5f46..90f8b166ab 100644 --- a/src/components/autosuggest/_macro-options.md +++ b/src/components/autosuggest/_macro-options.md @@ -18,3 +18,4 @@ | input | `Input` [_(ref)_](/components/input) | true | Configuration object for the input | | language | string | false | The ISO 639-1 Code will override the default language in page. Please note that only 'en', 'cy' and 'ni' is currently supported | | resultsThreshold | float | false | Option to adjust the search threshold and fuzziness. Accepts a range from 0 to 1, where 0 provides the closest match and 1 allows for more distant matches. Defaults to 0.2. | +| id | string | false | The `id` of the input | diff --git a/src/components/back-to-top/_macro-options.md b/src/components/back-to-top/_macro-options.md index aa3f9bcbf0..412c791034 100644 --- a/src/components/back-to-top/_macro-options.md +++ b/src/components/back-to-top/_macro-options.md @@ -1,4 +1,4 @@ | Name | Type | Required | Description | | ----------- | ------ | -------- | -------------------------------------------------------------- | | description | string | false | The text label added to the button. Defaults to "Back to Top" | -| anchor | string | false | The 'id' of the element the button jumps to. Defaults to "Top" | +| anchor | string | false | The `id` of the element the button jumps to. Defaults to "Top" | diff --git a/src/components/summary/_macro-options.md b/src/components/summary/_macro-options.md index 52c01010b1..5b468576bb 100644 --- a/src/components/summary/_macro-options.md +++ b/src/components/summary/_macro-options.md @@ -53,12 +53,12 @@ ## SummaryAction -| Name | Type | Required | Description | -| ------------------ | ------ | -------- | ------------------------------------------------------------------------------------------- | -| text | string | true | Text for the action link | -| url | string | true | The URL for the HTML `href` attribute of the link used to change the value of the row item | -| attributes | object | false | HTML attributes (for example, data attributes) to add to the action link | -| visuallyHiddenText | string | false | Visually hidden text in a span under the action link to add more context for screen readers | +| Name | Type | Required | Description | +| ------------------ | ------ | -------- | -------------------------------------------------------------------------------------------------------------------------------- | +| text | string | true | Text for the action link | +| url | string | true | The URL for the HTML `href` attribute of the link used to change the value of the row item | +| attributes | object | false | HTML attributes (for example, data attributes) to add to the action link | +| visuallyHiddenText | string | false | Visually hidden text in a span under the action link to add more context for screen readers, , defaults the text in `text` param | ## SummaryLink diff --git a/src/components/summary/_macro.njk b/src/components/summary/_macro.njk index 33ba88d346..8d3708d08d 100644 --- a/src/components/summary/_macro.njk +++ b/src/components/summary/_macro.njk @@ -112,10 +112,10 @@ class="ons-summary__button" {% if action.attributes %}{% for attribute, value in (action.attributes.items() if action.attributes is mapping and action.attributes.items else action.attributes) %}{{ ' ' }}{{ attribute }}="{{ value }}"{% endfor %}{% endif %} > - - {{ action.visuallyHiddenText }} + + {{ action.visuallyHiddenText | default (action.text) }} {% endfor %}