Skip to content

Commit

Permalink
Merge pull request #732 from alphagov/namespace-exports
Browse files Browse the repository at this point in the history
Namespace exports with 'govuk'
  • Loading branch information
Jani Kraner authored May 31, 2018
2 parents 27780ef + 6d32e40 commit ed8607f
Show file tree
Hide file tree
Showing 44 changed files with 47 additions and 43 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ Note: We're not following semantic versioning yet, we are going to talk about th

🔧 Fixes:

- Namespacing SCSS exports with 'govuk' prefix to avoid clashes with
exports in applications consuming GOV.UK Frontend
([PR #732](https://github.com/alphagov/govuk-frontend/pull/732))

- Fixes a bug whereby print styles were being 'rasterized' into the screen
styles when generating the IE8 stylesheet (this is a bug in sass-mq, and has
also been raised upstream – https://github.com/sass-mq/sass-mq/pull/111).
Expand Down
2 changes: 1 addition & 1 deletion src/components/back-link/_back-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("back-link") {
@include govuk-exports("govuk/component/back-link") {

.govuk-back-link {
@include govuk-typography-responsive($govuk-font-16);
Expand Down
2 changes: 1 addition & 1 deletion src/components/breadcrumbs/_breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("breadcrumbs") {
@include govuk-exports("govuk/component/breadcrumbs") {

// Size of chevron (excluding border)
$chevron-size: 7px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/button/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("button") {
@include govuk-exports("govuk/component/button") {

// Because the shadow (s0) is visually 'part of' the button, we need to reduce
// the height of the button to compensate by adjusting its padding (s1) and
Expand Down
2 changes: 1 addition & 1 deletion src/components/checkboxes/_checkboxes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("checkboxes") {
@include govuk-exports("govuk/component/checkboxes") {
$govuk-checkboxes-size: $govuk-spacing-scale-7;
$govuk-checkboxes-label-padding-left-right: $govuk-spacing-scale-3;

Expand Down
2 changes: 1 addition & 1 deletion src/components/date-input/_date-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("date-input") {
@include govuk-exports("govuk/component/date-input") {
.govuk-date-input {
@include govuk-clearfix;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/details/_details.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("details") {
@include govuk-exports("govuk/component/details") {

.govuk-details {
@include govuk-font-regular-19;
Expand Down
2 changes: 1 addition & 1 deletion src/components/error-message/_error-message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("error-message") {
@include govuk-exports("govuk/component/error-message") {
.govuk-error-message {
@include govuk-font-bold-19;

Expand Down
2 changes: 1 addition & 1 deletion src/components/error-summary/_error-summary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@import "../../core/lists";

@include govuk-exports("error-summary") {
@include govuk-exports("govuk/component/error-summary") {

.govuk-error-summary {
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/fieldset/_fieldset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("fieldset") {
@include govuk-exports("govuk/component/fieldset") {
.govuk-fieldset {
margin: 0;
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/file-upload/_file-upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("file-upload") {
@include govuk-exports("govuk/component/file-upload") {
.govuk-file-upload {
@include govuk-font-regular-19;
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@import "../../helpers/typography";

@include govuk-exports("footer") {
@include govuk-exports("govuk/component/footer") {

$govuk-footer-background: $govuk-grey-3;
$govuk-footer-border-top: #a1acb2;
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@import "../../helpers/typography";

@include govuk-exports("header") {
@include govuk-exports("govuk/component/header") {

$govuk-header-background: $govuk-black;
$govuk-header-border-color: $govuk-blue;
Expand Down
2 changes: 1 addition & 1 deletion src/components/hint/_hint.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("hint") {
@include govuk-exports("govuk/component/hint") {
.govuk-hint {
@include govuk-font-regular-19;

Expand Down
2 changes: 1 addition & 1 deletion src/components/input/_input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("input") {
@include govuk-exports("govuk/component/input") {
.govuk-input {
@include govuk-font-regular-19;
@include govuk-focusable;
Expand Down
2 changes: 1 addition & 1 deletion src/components/inset-text/_inset-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("inset-text") {
@include govuk-exports("govuk/component/inset-text") {
.govuk-inset-text {
@include govuk-font-regular-19;
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/label/_label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("label") {
@include govuk-exports("govuk/component/label") {
.govuk-label {
@include govuk-font-regular-19;
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/panel/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("panel") {
@include govuk-exports("govuk/component/panel") {

.govuk-panel {
@include govuk-font-regular-19;
Expand Down
2 changes: 1 addition & 1 deletion src/components/phase-banner/_phase-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@import "../tag/tag";

@include govuk-exports("phase-banner") {
@include govuk-exports("govuk/component/phase-banner") {
.govuk-phase-banner {
@include govuk-font-regular-16;
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/radios/_radios.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("radios") {
@include govuk-exports("govuk/component/radios") {
$govuk-radios-size: $govuk-spacing-scale-7;
$govuk-radios-label-padding-left-right: $govuk-spacing-scale-3;

Expand Down
2 changes: 1 addition & 1 deletion src/components/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("select") {
@include govuk-exports("govuk/component/select") {
.govuk-select {
@include govuk-font-regular;
@include govuk-typography-responsive(
Expand Down
2 changes: 1 addition & 1 deletion src/components/skip-link/_skip-link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("skip-link") {
@include govuk-exports("govuk/component/skip-link") {
.govuk-skip-link {
@include govuk-visually-hidden-focusable;
@include govuk-link-common;
Expand Down
2 changes: 1 addition & 1 deletion src/components/table/_table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("table") {
@include govuk-exports("govuk/component/table") {
.govuk-table {
@include govuk-font-regular-19;
@include govuk-text-colour;
Expand Down
2 changes: 1 addition & 1 deletion src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "../../tools/all";
@import "../../helpers/all";

@include govuk-exports("tag") {
@include govuk-exports("govuk/component/tag") {
.govuk-tag {
@include govuk-font-bold;
@include govuk-typography-responsive(
Expand Down
2 changes: 1 addition & 1 deletion src/components/textarea/_textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@import "../hint/hint";
@import "../label/label";

@include govuk-exports("textarea") {
@include govuk-exports("govuk/component/textarea") {
.govuk-textarea {
@include govuk-font-regular;
@include govuk-typography-responsive(
Expand Down
2 changes: 1 addition & 1 deletion src/components/warning-text/_warning-text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@import "../../objects/shapes";

@include govuk-exports("warning-text") {
@include govuk-exports("govuk/component/warning-text") {

.govuk-warning-text {
@include govuk-font-regular-19;
Expand Down
2 changes: 1 addition & 1 deletion src/core/_global-styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
}

@include govuk-exports("govuk-global-styles") {
@include govuk-exports("govuk/core/global-styles") {

@if $govuk-global-styles == true {
@include govuk-global-styles;
Expand Down
2 changes: 1 addition & 1 deletion src/core/_links.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("links") {
@include govuk-exports("govuk/core/links") {

// We use a placeholder class here so that we can @extend from the prose scope
// without also applying every other occurrence of the .govuk-link selector to
Expand Down
2 changes: 1 addition & 1 deletion src/core/_lists.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("lists") {
@include govuk-exports("govuk/core/lists") {

// We use a placeholder class here so that we can @extend from the prose scope
// without also applying every other occurrence of the .govuk-list selector to
Expand Down
2 changes: 1 addition & 1 deletion src/core/_prose-scope.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("prose-scope") {
@include govuk-exports("govuk/core/prose-scope") {
.govuk-prose-scope {

// @extend inheritance
Expand Down
2 changes: 1 addition & 1 deletion src/core/_section-break.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("section-break") {
@include govuk-exports("govuk/core/section-break") {

// We use placeholder classes here so that we can @extend from the prose scope

Expand Down
2 changes: 1 addition & 1 deletion src/core/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("typography") {
@include govuk-exports("govuk/core/typography") {

// We use placeholder classes here so that we can @extend from the prose scope
// without also applying every other occurrence of the typography selectors to
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/_font-faces.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// sass-lint:disable no-css-comments, no-duplicate-properties, property-sort-order, indentation

@mixin govuk-font-face-nta {
@include govuk-exports("font-face") {
@include govuk-exports("govuk/helpers/font-face") {
@at-root {
/*! Copyright (c) 2011 by Margaret Calvert & Henrik Kubel. All rights reserved. The font has been customised for exclusive use on gov.uk. This cut is not commercially available. */

Expand Down
2 changes: 1 addition & 1 deletion src/objects/_form-group.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("form-group") {
@include govuk-exports("govuk/objects/form-group") {

.govuk-form-group {
@include govuk-responsive-margin($govuk-spacing-responsive-6, "bottom");
Expand Down
2 changes: 1 addition & 1 deletion src/objects/_grid.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("govuk-grid") {
@include govuk-exports("govuk/objects/grid") {
//most common usage
@include govuk-grid-row;
@include govuk-grid-column(one-quarter);
Expand Down
2 changes: 1 addition & 1 deletion src/objects/_main-wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@include govuk-responsive-padding($govuk-spacing-responsive-8, "top");
}

@include govuk-exports("main-wrapper") {
@include govuk-exports("govuk/objects/main-wrapper") {
.govuk-main-wrapper {
@include govuk-main-wrapper;
}
Expand Down
2 changes: 1 addition & 1 deletion src/objects/_shapes.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("shapes") {
@include govuk-exports("govuk/objects/shapes") {
.govuk-circle {
display: inline-block;
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion src/objects/_width-container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
}

@include govuk-exports("width-container") {
@include govuk-exports("govuk/objects/width-container") {
.govuk-width-container {
@include govuk-width-container;
}
Expand Down
2 changes: 1 addition & 1 deletion src/overrides/_display.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("display-overrides") {
@include govuk-exports("govuk/overrides/display") {

.govuk-\!-display-inline {
display: inline !important;
Expand Down
2 changes: 1 addition & 1 deletion src/overrides/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $spacing-directions: (
}
}

@include govuk-exports("spacing-overrides") {
@include govuk-exports("govuk/overrides/spacing") {
@include generate-spacing-overrides("margin", "m");
@include generate-spacing-overrides("padding", "p");
}
2 changes: 1 addition & 1 deletion src/overrides/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("typography-overrides") {
@include govuk-exports("govuk/overrides/typography") {
// Font size and line height

// Generate typography override classes for each responsive font map in the
Expand Down
2 changes: 1 addition & 1 deletion src/overrides/_width.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("width-overrides") {
@include govuk-exports("govuk/overrides/width") {
.govuk-\!-width-three-quarters {
width: 100% !important;

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/_clearfix.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("clearfix") {
@include govuk-exports("govuk/utilities/clearfix") {
.govuk-clearfix {
@include govuk-clearfix;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/_visually-hidden.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@include govuk-exports("visually-hidden") {
@include govuk-exports("govuk/utilities/visually-hidden") {
.govuk-visually-hidden {
@include govuk-visually-hidden;
}
Expand Down

0 comments on commit ed8607f

Please sign in to comment.