Skip to content

Commit

Permalink
Merge pull request #888 from dpc-sdp/fix/r20-1565-hanging-icon
Browse files Browse the repository at this point in the history
[R20-1565] Prevent hanging icon in header journey links
  • Loading branch information
dylankelly authored Oct 15, 2023
2 parents 7c8bc57 + f31659f commit 704b024
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@
}

.rpl-header-links__item .rpl-list__link {
margin-right: calc(-1 * var(--rpl-sp-6));
padding-right: var(--rpl-sp-6);

.rpl-icon {
--rpl-icon-size: var(--rpl-sp-3);

margin-left: var(--rpl-sp-2);
margin-right: calc(-1 * var(--rpl-sp-4));
padding-left: var(--rpl-sp-2);
transition: transform ease-out var(--rpl-motion-speed-3);

@media (--rpl-bp-l) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,13 @@ This is an example header with journey links
play={a11yStoryCheck}
args={{
links: {
title: 'Want to know more',
title: 'Popular searches',
items: [
{text: 'First links', url: '#first'},
{text: 'Second link', url: '#second'},
{text: 'A third link', url: '#third'},
{text: 'Jobs and careers', url: '#first'},
{text: 'Working with Children Check', url: '#second'},
{text: 'NDIS Worker Screening Check', url: '#third'},
{text: 'Coronavirus: latest information', url: '#fourth'},
{text: 'Contact the Victorian Government', url: '#fifth'}
]
}
}}
Expand Down

0 comments on commit 704b024

Please sign in to comment.