Skip to content

Commit fb5b93a

Browse files
Merge pull request #601 from alphagov/drop-import-trailing-index
2 parents 78b709b + 871ca37 commit fb5b93a

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

source/import-css/index.html.md.erb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,36 +55,36 @@ You must import the layers in the order listed in the example below.
5555
// Basic content styles for typography, links etc. Approximately 10% of
5656
// the CSS output if you include everything.
5757

58-
@import "node_modules/govuk-frontend/dist/govuk/core/index";
58+
@import "node_modules/govuk-frontend/dist/govuk/core";
5959

6060
// Objects include things like the page template, grid and form groups.
6161
// Approximately 5% of the CSS output if you include everything.
6262

63-
@import "node_modules/govuk-frontend/dist/govuk/objects/index";
63+
@import "node_modules/govuk-frontend/dist/govuk/objects";
6464

6565
// The components themselves - try to only include the components you
6666
// are using in your project. Approximately 70% of the CSS output if
6767
// you include everything.
6868

6969
<% components.each do |component| %>
70-
@import "node_modules/govuk-frontend/dist/govuk/components/<%= component %>/index";
70+
@import "node_modules/govuk-frontend/dist/govuk/components/<%= component %>";
7171
<% end %>
7272

7373
/*
7474
// Alternatively, you can import all components:
75-
@import "node_modules/govuk-frontend/dist/govuk/components/index";
75+
@import "node_modules/govuk-frontend/dist/govuk/components";
7676
*/
7777

7878
// Utilities, for example govuk-clearfix or govuk-visually-hidden.
7979
// Approximately 1% of the CSS output if you include everything.
8080

81-
@import "node_modules/govuk-frontend/dist/govuk/utilities/index";
81+
@import "node_modules/govuk-frontend/dist/govuk/utilities";
8282

8383
// Overrides, used to adjust things like the amount of spacing on an
8484
// element. Override classes always include `-!-` in the class name.
8585
// Approximately 15% of the CSS output if you include everything.
8686

87-
@import "node_modules/govuk-frontend/dist/govuk/overrides/index";
87+
@import "node_modules/govuk-frontend/dist/govuk/overrides";
8888

8989
/*
9090
// Alternatively, you can import the specific groups of overrides

source/installing-with-npm/index.html.md.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The accordion will use a generic font until you get the font and images working,
6464
There are also different ways you can [import GOV.UK Frontend's CSS](../import-css/), including into your project's main Sass file:
6565

6666
```scss
67-
@import "node_modules/govuk-frontend/dist/govuk/index";
67+
@import "node_modules/govuk-frontend/dist/govuk";
6868
```
6969

7070
### Get the font and images working

0 commit comments

Comments
 (0)