Skip to content

Commit

Permalink
Update the heading link arrow style (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood authored Jul 17, 2024
1 parent 8f56db7 commit 85ccbbf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Tables are no longer automatically 100% width but can be made to be with `.tna-table--full`
- `<ul>` elements with the class `.tna-container` have their `list-style` removed
- The default `htmlElement` option for the card component is now `<article>`
- Updated the heading link arrow style

### Deprecated
### Removed
Expand Down
28 changes: 20 additions & 8 deletions src/nationalarchives/utilities/typography/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,19 +193,20 @@ small {
vertical-align: top;

&::after {
content: "\203A";
content: "";

padding-left: spacing.space(0.5);
width: 0.3125em;
height: 0.3125em;
margin-left: 0.375em;

display: inline-block;

font-weight: 700;
}
vertical-align: middle;

&:hover {
&::after {
padding-left: spacing.space(0.75);
}
@include colour.colour-border("link", 0.125em, solid, top);
@include colour.colour-border("link", 0.125em, solid, right);

transform: rotate(45deg);
}
}

Expand Down Expand Up @@ -238,6 +239,17 @@ small {
typographyVars.$heading-l-font-size-tiny,
typographyVars.$heading-l-line-height
);

a {
&::after {
width: 0.275em;
height: 0.275em;
margin-left: 0.25em;

border-top-width: 0.1em;
border-right-width: 0.1em;
}
}
}

%heading-m {
Expand Down

0 comments on commit 85ccbbf

Please sign in to comment.