Skip to content

Commit 30580a2

Browse files
committed
Stats: keep 'view all' link at the bottom
1 parent ffc635e commit 30580a2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Diff for: packages/components/src/horizontal-bar-list/stats-card.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,21 @@ const StatsCard = ( props: StatsCardProps ) => {
109109
>
110110
{ isEmpty ? emptyMessage : children }
111111
</div>
112-
{ footerAction && (
113-
<a
114-
className={ `${ BASE_CLASS_NAME }--footer` }
115-
href={ footerAction?.url }
116-
aria-label={
117-
translate( 'View all %(title)s', {
118-
args: { title: title.toLocaleLowerCase?.() ?? title.toLowerCase() },
119-
comment: '"View all posts & pages", "View all referrers", etc.',
120-
} ) as string
121-
}
122-
>
123-
{ footerAction.label || translate( 'View all' ) }
124-
</a>
125-
) }
126112
</div>
113+
{ footerAction && (
114+
<a
115+
className={ `${ BASE_CLASS_NAME }--footer` }
116+
href={ footerAction?.url }
117+
aria-label={
118+
translate( 'View all %(title)s', {
119+
args: { title: title.toLocaleLowerCase?.() ?? title.toLowerCase() },
120+
comment: '"View all posts & pages", "View all referrers", etc.',
121+
} ) as string
122+
}
123+
>
124+
{ footerAction.label || translate( 'View all' ) }
125+
</a>
126+
) }
127127
</div>
128128
{ overlay && <div className={ `${ BASE_CLASS_NAME }__overlay` }>{ overlay }</div> }
129129
</div>

0 commit comments

Comments
 (0)