Skip to content

Commit

Permalink
Bump stylelint and stylelint-config-gds (#185)
Browse files Browse the repository at this point in the history
* Bump stylelint and stylelint-config-gds

Bumps [stylelint](https://github.com/stylelint/stylelint) and [stylelint-config-gds](https://github.com/alphagov/stylelint-config-gds). These dependencies needed to be updated together.

Updates `stylelint` from 14.16.1 to 15.10.3
- [Release notes](https://github.com/stylelint/stylelint/releases)
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/stylelint@14.16.1...15.10.3)

Updates `stylelint-config-gds` from 0.3.0 to 1.0.0
- [Changelog](https://github.com/alphagov/stylelint-config-gds/blob/main/CHANGELOG.md)
- [Commits](alphagov/stylelint-config-gds@0.3.0...1.0.0)

---
updated-dependencies:
- dependency-name: stylelint
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: stylelint-config-gds
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use double colon pseudo-element notation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Frankie Roberto <[email protected]>
  • Loading branch information
dependabot[bot] and frankieroberto authored Sep 17, 2023
1 parent a1fff3f commit 3d5dfaa
Show file tree
Hide file tree
Showing 7 changed files with 442 additions and 298 deletions.
2 changes: 1 addition & 1 deletion components/contents-list/_contents-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
padding-left: govuk-spacing(5);
position: relative;

&:before {
&::before {
content: "";
left: 0;
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion components/document-list/_document-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
display: inline-block;
margin: 0;

& + .app-document-list__attribute:before {
& + .app-document-list__attribute::before {
content: "\2002\2002";
}
}
Expand Down
6 changes: 3 additions & 3 deletions components/footnotes-list/_footnotes-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ a[aria-describedby="footnotes-label"] {
@include govuk-link-style-no-visited-state;
}

a[aria-describedby="footnotes-label"]:before {
a[aria-describedby="footnotes-label"]::before {
color: currentcolor;
content: "[";
}

a[aria-describedby="footnotes-label"]:after {
a[aria-describedby="footnotes-label"]::after {
color: currentcolor;
content: "]";
}
Expand All @@ -26,7 +26,7 @@ a[aria-describedby="footnotes-label"]:after {
position: relative;
}

li:before {
li::before {
@include govuk-font(19, $tabular: true);
content: counter(footnotes) ".";
position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions components/link/_link.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
text-decoration: none;
}

&:hover:after,
:target &:after {
&:hover::after,
:target &::after {
color: govuk-colour("dark-grey");
content: "#";
font-variant: all-small-caps;
Expand Down
4 changes: 2 additions & 2 deletions components/site-search/_site-search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ $icon-size: 40px;
.app-site-search__aliases {
margin-left: govuk-spacing(1);

&:before {
&::before {
content: "(";
}

&:after {
&::after {
content: ")";
}
}
Expand Down
Loading

0 comments on commit 3d5dfaa

Please sign in to comment.