Skip to content

Commit

Permalink
Layout icon should be blue too (#5854)
Browse files Browse the repository at this point in the history
**Problem:**
Icon `layout` coming from the component annotation should be blue, just
like `row` and `column`

**Manual Tests:**
I hereby swear that:

- [x] I opened a hydrogen project and it loaded
- [x] I could navigate to various routes in Preview mode
  • Loading branch information
gbalint authored Jun 6, 2024
1 parent 80431db commit e47a1d1
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,12 @@ export const LayoutIcon: React.FunctionComponent<React.PropsWithChildren<LayoutI
iconTypeToReturn = props.override
if (baseColor === 'white') {
colorToReturn = baseColor
} else if (props.override === 'row' || props.override === 'column') {
} else if (
props.override === 'row' ||
props.override === 'column' ||
props.override === 'layout' ||
props.override === 'grid'
) {
colorToReturn = 'primary'
} else {
colorToReturn = baseColor
Expand Down

0 comments on commit e47a1d1

Please sign in to comment.