Skip to content

Commit

Permalink
fix: update Icon defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbrink committed Jan 10, 2025
1 parent da32284 commit a5834c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions library/PostObject/Icon/Icon.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Icon implements IconInterface
*/
public function getSize(): string
{
return false;
return 'md';
}

/**
Expand Down Expand Up @@ -60,7 +60,7 @@ public function getComponentElement(): string
*/
public function getFilled(): bool
{
return true;
return false;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion library/PostObject/Icon/Resolvers/TermIconResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getIcon(): string
return $this->icon['src'];
}

public function getColor(): string
public function getCustomColor(): string
{
return $this->color ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion library/PostObject/Icon/Resolvers/TermconResolver.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function testResolveReturnsIconInterfaceWithCorrectValues()
$icon = $resolver->resolve();

$this->assertEquals('testIcon', $icon->getIcon());
$this->assertEquals('testColor', $icon->getColor());
$this->assertEquals('testColor', $icon->getCustomColor());
}

private function getTermHelper(array $returnValues = []): GetTermIcon&GetTermColor
Expand Down

0 comments on commit a5834c6

Please sign in to comment.