Skip to content

Commit

Permalink
change(item): moved svg filter definitions to item.overrides
Browse files Browse the repository at this point in the history
- when running the package inside eea-website-frontend it didn't
  find the variable definition when it was placed within item.less
  • Loading branch information
ichim-david committed Oct 4, 2022
1 parent 6660e2e commit de70366
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
12 changes: 0 additions & 12 deletions theme/themes/eea/definitions/views/item.less
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@
/*--------------
Item
---------------*/
// color item images that are svg files
.item.primary img {
filter: @itemPrimaryFilterColor;
}

.item.secondary img {
filter: @itemSecondaryFilterColor;
}

.item.tertiary img {
filter: @itemTertiaryFilterColor;
}

.ui.items > .item:after {
display: block;
Expand Down
13 changes: 13 additions & 0 deletions theme/themes/eea/views/item.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,19 @@
}
}

// color item images that are svg files
.item.primary img {
filter: @itemPrimaryFilterColor;
}

.item.secondary img {
filter: @itemSecondaryFilterColor;
}

.item.tertiary img {
filter: @itemTertiaryFilterColor;
}

// decrease margin when using icons instead of images
// since the icons have themselves extra whitespace
// and we should aim to get about 32px as seen in the figma design
Expand Down

0 comments on commit de70366

Please sign in to comment.