Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from tim-s-ccs/v0.2.1
Browse files Browse the repository at this point in the history
V0.2.1
  • Loading branch information
tim-s-ccs authored Jan 25, 2022
2 parents bc59f95 + ac33b01 commit cc289bf
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.0
0.2.1

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion package/ccs/components/footer/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@

.ccs-footer__link {
@include govuk-link-common;
color: $ccs-footer-text;

&:link,
&:visited,
&:hover {
color: $ccs-footer-text;
}

&:hover,
&:focus {
color: $govuk-focus-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
Expand Down
5 changes: 2 additions & 3 deletions package/ccs/components/header/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
text-decoration: none;
}

&:hover,
&:active {
&:hover:not(:focus),
&:active:not(:focus) {
// Negate the added border
margin-bottom: -1px;
// Omitting colour will use default value of currentColor – if we
Expand All @@ -123,7 +123,6 @@
// Remove any borders that show when focused and hovered.
&:focus {
margin-bottom: 0;
border-bottom: 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ts-ccs-components",
"description": "CCS Components contains the code you need to start building a user interface for CCS platforms and services.",
"version": "0.2.0",
"version": "0.2.1",
"main": "ccs/all.js",
"sass": "ccs/all.scss",
"engines": {
Expand Down
12 changes: 11 additions & 1 deletion src/ccs/components/footer/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@

.ccs-footer__link {
@include govuk-link-common;
color: $ccs-footer-text;

&:link,
&:visited,
&:hover {
color: $ccs-footer-text;
}

&:hover,
&:focus {
color: $govuk-focus-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
Expand Down
5 changes: 2 additions & 3 deletions src/ccs/components/header/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
text-decoration: none;
}

&:hover,
&:active {
&:hover:not(:focus),
&:active:not(:focus) {
// Negate the added border
margin-bottom: -1px;
// Omitting colour will use default value of currentColor – if we
Expand All @@ -123,7 +123,6 @@
// Remove any borders that show when focused and hovered.
&:focus {
margin-bottom: 0;
border-bottom: 0;
}
}

Expand Down

0 comments on commit cc289bf

Please sign in to comment.