Skip to content

Commit

Permalink
Switch layer-icon to pure SVGs (#25448)
Browse files Browse the repository at this point in the history
* Switch layer-icon to pure SVGs

* Updated LayerIcon parent style
  • Loading branch information
morgan-sam committed Jul 3, 2020
1 parent 1081ea7 commit d0b6a83
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 331 deletions.
8 changes: 8 additions & 0 deletions www/src/assets/icons/abstract-symbol.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions www/src/assets/icons/app-window.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions www/src/assets/icons/atomic-symbol.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions www/src/assets/icons/graphql-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
337 changes: 11 additions & 326 deletions www/src/assets/icons/layer-icon.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions www/src/assets/icons/react-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions www/src/components/layer-model/layer-model.js
Expand Up @@ -45,11 +45,13 @@ const Layer = ({ buttonRef, layer, onClick, selected, index }) => {
p: 2,
}}
>
<span css={{ height: 40 }}>
<LayerIcon
name={icon}
fillColor={selected ? colors[baseColor][70] : colors.grey[50]}
/>
<span
sx={{
height: 40,
color: selected ? colors[baseColor][70] : colors.grey[50],
}}
>
<LayerIcon name={icon} />
</span>
<span>{title}</span>
</span>
Expand Down

0 comments on commit d0b6a83

Please sign in to comment.