Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6e46662

Browse filesBrowse files
committed
Update visually hidden text for summary card actions
1 parent f47e762 commit 6e46662
Copy full SHA for 6e46662

File tree

Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-5
lines changed
Open diff view settings
Collapse file

‎src/components/govuk-vue/summary-list/GvSummaryCardAction.vue‎

Copy file name to clipboardExpand all lines: src/components/govuk-vue/summary-list/GvSummaryCardAction.vue
+1-5Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,7 @@ const computedHref = computed(() => {
7373
})
7474
7575
const computedVisuallyHiddenText = computed(() => {
76-
if (props.visuallyHiddenText) {
77-
return props.visuallyHiddenText
78-
} else {
79-
return cardTitle
80-
}
76+
return `${props.visuallyHiddenText ?? ''} ${cardTitle.value ? `(${cardTitle.value})` : ''}`
8177
})
8278
</script>
8379

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.