From 96e506afe539707a8ba74d3468c40a08bc919def Mon Sep 17 00:00:00 2001 From: 199ocero <199ocero@users.noreply.github.com> Date: Mon, 1 Jan 2024 13:12:34 +0000 Subject: [PATCH 1/2] Update CHANGELOG --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f97bec..9bb6b2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,20 @@ All notable changes to `radio-deck` will be documented in this file. +## Version 1.1.0: Added Support for Custom Colors and Code Cleanup - 2024-01-01 + +Clean up some files, remove unnecessary variables and also make some minor performance nice tip thanks to @ralphjsmit at discord. This release also supports the custom color that will be visible to card ring and icons. + +### What's Changed + +* Cleanup files by @CodeWithDennis in https://github.com/199ocero/radio-deck/pull/1 + +### New Contributors + +* @CodeWithDennis made their first contribution in https://github.com/199ocero/radio-deck/pull/1 + +**Full Changelog**: https://github.com/199ocero/radio-deck/compare/v1.0.0-beta...v1.1.0 + ## v1.0.0-beta - 2023-12-28 First beta release From 71f0e62b2cd61e59ad8eb20efaf49ebb3fee738d Mon Sep 17 00:00:00 2001 From: Dennis Elsinga Date: Tue, 2 Jan 2024 14:24:22 +0100 Subject: [PATCH 2/2] Check for `null` instead of false --- src/Forms/Components/RadioDeck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/Components/RadioDeck.php b/src/Forms/Components/RadioDeck.php index 4cc4c3b..50164fb 100644 --- a/src/Forms/Components/RadioDeck.php +++ b/src/Forms/Components/RadioDeck.php @@ -30,7 +30,7 @@ public function icons(array | Closure | null $icons): static */ public function hasIcons($value): bool { - if ($value && !empty($this->getIcons())) { + if ($value !== null && !empty($this->getIcons())) { return array_key_exists($value, $this->getIcons()); }