Skip to content

Commit

Permalink
FCL-152 | fixing up colours that don't look too good
Browse files Browse the repository at this point in the history
  • Loading branch information
jlhdxw committed Nov 29, 2024
1 parent 2271bf2 commit bbee81b
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 36 deletions.
9 changes: 4 additions & 5 deletions ds_judgements_public_ui/sass/includes/_basic_search_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,18 @@
font-size: $typography-md-text-size;
font-weight: bold;
color: colour-var("link");
text-decoration: none;
text-decoration: underline;

background: transparent;
border: 0;
border-bottom: 1px solid $color-dark-blue;

&:visited {
color: $color-dark-blue;
color: colour-var("link");
}

&:hover {
color: colour-var("accent-link");
text-decoration: underline;
color: colour-var("link");
text-decoration: none;
}
}

Expand Down
8 changes: 4 additions & 4 deletions ds_judgements_public_ui/sass/includes/_buttons.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.button-cta {
@include call-to-action-button;

border: 2px solid colour-var("blue");
border: 2px solid brand-colour("navy");

&:disabled,
&[aria-disabled="true"] {
Expand All @@ -23,12 +23,12 @@
.button-secondary {
@include call-to-action-button;

color: colour-var("blue");
color: brand-colour("navy");
background-color: colour-var("contrast-button-background");
border: 2px solid colour-var("blue");
border: 2px solid brand-colour("navy");

&:visited {
color: colour-var("blue");
color: brand-colour("navy");
}

&:focus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
display: inline-block;

font-size: $typography-md-text-size;
color: colour-var("blue");
color: colour-var("link");
text-decoration: underline;

background: url($fa_chevron_down_link_blue) right no-repeat;
Expand Down
24 changes: 15 additions & 9 deletions ds_judgements_public_ui/sass/includes/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,19 @@
color: colour-var("accent-button-text");
text-decoration: none;

background-color: colour-var("navy");
background-color: brand-colour("navy");
border: 0;

&:focus,
&:hover {
@include focus-default;

color: colour-var("accent-button-text") !important;
color: colour-var("accent-button-text");
text-decoration: underline;

background-color: transparent;
border-color: colour-var("navy");
outline-color: colour-var("navy");
background-color: brand-colour("navy");
border-color: brand-colour("navy");
outline-color: brand-colour("navy");
outline-offset: 0.2rem;
}
}
Expand All @@ -93,20 +93,26 @@
@include call-to-action-button;

padding: $space-3 $space-5;
color: colour-var("blue") !important;
color: brand-colour("navy");
background-color: transparent;
border: 2px solid colour-var("navy");
border: 2px solid brand-colour("navy");

&:hover,
&:focus {
color: brand-colour("navy");
background-color: transparent;
}
}

@mixin emphasised-block {
padding: $space-4;
background-color: colour-var("accent-background-light");
border-left: 0.5rem solid $color-highlight-blue;
border-left: 0.5rem solid brand-colour("navy");
}

@mixin focus-default {
z-index: 999;
outline: 5px solid colour-var("focus-outline");
outline: 5px solid brand-colour("navy");
outline-offset: 2px;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
&--success {
@include page-notification;

color: colour-var("green");
border-color: colour-var("green");
color: brand-colour("green");
border-color: brand-colour("green");
}

&--failure {
Expand All @@ -39,8 +39,8 @@
&--success {
@include context-notification;

color: colour-var("green");
border-color: colour-var("green");
color: brand-colour("green");
border-color: brand-colour("green");
}

&--failure {
Expand Down
10 changes: 5 additions & 5 deletions ds_judgements_public_ui/sass/includes/_structured_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,18 +193,18 @@
margin: 0;
font-size: $typography-sm-text-size;
font-weight: $typography-bold-font-weight;
color: colour-var("red");
color: colour-var("form-error-text");
}

&__to-date-error-message {
margin: 0;
font-size: $typography-sm-text-size;
font-weight: $typography-bold-font-weight;
color: colour-var("red");
color: colour-var("form-error-text");
}

input:invalid {
border-color: colour-var("red");
border-color: colour-var("form-error-text");
}

input:focus:invalid {
Expand Down Expand Up @@ -334,7 +334,7 @@
box-sizing: border-box;
width: 100% !important;
margin-bottom: 0;
border-color: colour-var("red");
border-color: colour-var("form-error-text");
}

fieldset {
Expand All @@ -346,7 +346,7 @@
&__multi-fields-panel {
fieldset.with-errors {
padding-left: $space-6;
border-left: 4px solid colour-var("red");
border-left: 4px solid colour-var("form-error-text");

.structured-search__help-text {
margin-bottom: $space-2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
padding: $space-2;

background-color: colour-var("background");
border: 3px solid colour-var("blue");
border: 3px solid brand-colour("navy");
}

.govuk-details--compact {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@

.govuk-grid-column-one-third__grid_info_card_text {
color: colour-var("accent-font-base");
text-decoration-color: colour-var("accent-background-light");
text-decoration-line: underline;
text-decoration: underline;

&:hover {
text-decoration: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
}

.govuk-notification-banner_red {
background-color: colour-var("red");
border: 5px solid colour-var("red");
background-color: brand-colour("pastel-pink");
border: 5px solid brand-colour("pastel-pink");
}

.govuk-notification-banner__link {
Expand Down
6 changes: 3 additions & 3 deletions ds_judgements_public_ui/sass/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@use "@nationalarchives/frontend/nationalarchives/tools/colour" as *;

// Vendor imports
@import "@nationalarchives/ds-caselaw-frontend/src/main";

// Setup
@import "includes/variables";
@import "includes/mixins";
Expand All @@ -16,9 +19,6 @@
@import "includes/spacing";
@import "includes/typography";

// Vendor imports
@import "@nationalarchives/ds-caselaw-frontend/src/main";

$govuk-font-family: $font-open-sans;
$govuk-focus-colour: colour-var("focus-outline");

Expand Down

0 comments on commit bbee81b

Please sign in to comment.