Skip to content

Commit

Permalink
Merge pull request #3602 from alphagov/remove-compatibility-mode-mixin
Browse files Browse the repository at this point in the history
Remove `compatibility-mode` mixin
  • Loading branch information
owenatgov authored May 11, 2023
2 parents 1e7b7e2 + 4331987 commit f4d0533
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 286 deletions.
44 changes: 0 additions & 44 deletions packages/govuk-frontend/src/govuk/components/button/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
box-shadow: inset 0 0 0 1px $govuk-focus-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-button-text-colour;
}
}

&:focus:not(:active):not(:hover) {
border-color: $govuk-focus-colour;
color: $govuk-focus-text-colour;
Expand Down Expand Up @@ -179,17 +168,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
color: $govuk-secondary-button-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-secondary-button-text-colour;
}
}

&:hover {
background-color: $govuk-secondary-button-hover-colour;

Expand All @@ -211,17 +189,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
color: $govuk-warning-button-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-warning-button-text-colour;
}
}

&:hover {
background-color: $govuk-warning-button-hover-colour;

Expand All @@ -243,17 +210,6 @@ $govuk-button-text-colour: govuk-colour("white") !default;
color: $govuk-inverse-button-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-inverse-button-text-colour;
}
}

&:hover {
background-color: $govuk-inverse-button-hover-colour;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@
.govuk-footer__link {
@include govuk-link-common;
@include govuk-link-style-text;

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited links a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
@include govuk-text-colour;
}
}
}

.govuk-footer__section-break {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
border-bottom: 1px solid $govuk-border-colour;
text-align: left;
vertical-align: top;
// GOV.UK Elements sets the font-size and line-height for all headers and cells
// in tables.
@include _govuk-compatibility(govuk_elements) {
font-size: inherit;
line-height: inherit;
}
}

.govuk-table__cell--numeric {
Expand Down
6 changes: 0 additions & 6 deletions packages/govuk-frontend/src/govuk/core/_section-break.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@
%govuk-section-break {
margin: 0;
border: 0;

// fix double-width section break and forced visible section break
// when combined with styles from alphagov/elements
@include _govuk-compatibility(govuk_elements) {
height: 0;
}
}

.govuk-section-break {
Expand Down
60 changes: 0 additions & 60 deletions packages/govuk-frontend/src/govuk/helpers/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,6 @@
&:focus {
color: $govuk-focus-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited link s a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-focus-text-colour;
}
}
}

/// Error link styles
Expand Down Expand Up @@ -144,17 +133,6 @@
&:focus {
color: $govuk-focus-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited link s a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-focus-text-colour;
}
}
}

/// Success link styles
Expand Down Expand Up @@ -192,17 +170,6 @@
&:focus {
color: $govuk-focus-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector
// designed to make unvisited link s a slightly darker blue when focussed, so
// we need to override the text colour for that combination of selectors so
// so that unvisited links styled as buttons do not end up with dark blue
// text when focussed.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-focus-text-colour;
}
}
}

/// Muted link styles
Expand Down Expand Up @@ -237,15 +204,6 @@
&: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 we need to
// override the text colour for that combination of selectors.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
@include govuk-text-colour;
}
}
}

/// Text link styles
Expand Down Expand Up @@ -282,15 +240,6 @@
&:focus {
@include govuk-text-colour;
}

// alphagov/govuk_template includes a specific a:link:focus selector designed
// to make unvisited links a slightly darker blue when focussed, so we need to
// override the text colour for that combination of selectors.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
@include govuk-text-colour;
}
}
}

/// Inverse link styles
Expand Down Expand Up @@ -325,15 +274,6 @@
&: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 we need to
// override the text colour for that combination of selectors.
@include _govuk-compatibility(govuk_template) {
&:link:focus {
color: $govuk-focus-text-colour;
}
}
}

/// Default link styles, without a visited state
Expand Down
1 change: 0 additions & 1 deletion packages/govuk-frontend/src/govuk/tools/_all.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "compatibility";
@import "exports";
@import "font-url";
@import "image-url";
Expand Down
50 changes: 0 additions & 50 deletions packages/govuk-frontend/src/govuk/tools/_compatibility.scss

This file was deleted.

109 changes: 0 additions & 109 deletions packages/govuk-frontend/src/govuk/tools/compatibility.test.js

This file was deleted.

1 change: 0 additions & 1 deletion sassdoc.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ groups:
settings/warnings: Settings / Warnings
tools: Tools
tools/assets: Tools / Assets
tools/compatibility-mode: Tools / Compatibility Mode
tools/unit-conversion: Tools / Unit Conversion
helpers: Helpers
overrides: Overrides
Expand Down

0 comments on commit f4d0533

Please sign in to comment.