Skip to content

Commit

Permalink
[WEBDEV-1122] Making SVGs purple by default where possible (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawaheed authored and naseberry committed Dec 24, 2018
1 parent b866a1f commit 58ef237
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 34 deletions.
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions src/icons/caution-circle-white.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/icons/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/icons/uk-parliament.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/stylesheets/elements/_icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ svg {

/*--- UK Parliament Icon ---*/

header .uk_parliament g {
fill: $white;
}

@media (max-width: $medium - 1) {
.uk_parliament {
z-index: 1;
Expand Down Expand Up @@ -68,8 +72,16 @@ header form + a svg {
top: 15px;
position: absolute;

&[data-icon="search"] g {
fill: $white;
}

&[data-icon="close"] {
opacity: 0;

g {
stroke: $white;
}
}
}

Expand Down
11 changes: 3 additions & 8 deletions src/templates/prototypes/_icons.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,16 @@ block content
h2 Small
table
tr
td Caution circle
td Close
td Download
td Print
td Search
td Share
tr
td
include ../../icons/caution-circle-white.svg
td
include ../../icons/close.svg
td
include ../../icons/download.svg
tr
td Print
td Search
td Share
tr
td
include ../../icons/print.svg
td
Expand Down

0 comments on commit 58ef237

Please sign in to comment.