Skip to content

Commit

Permalink
Don't use the hint text in the tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
holmesadam committed Dec 19, 2024
1 parent 2a4e327 commit 812a313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fields/FieldsContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function appendFilamentComponentsOptions($component, $zeusField, bool $ha
$component = $component->hint($zeusField->options['hint']['text']);
}
if (optional($zeusField->options)['hint']['icon']) {
$component = $component->hintIcon($zeusField->options['hint']['icon'], tooltip: $zeusField->options['hint']['icon-tooltip'] ?? $zeusField->options['hint']['text']);
$component = $component->hintIcon($zeusField->options['hint']['icon'], tooltip: $zeusField->options['hint']['icon-tooltip']);
}
if (optional($zeusField->options)['hint']['color']) {
$component = $component->hintColor(fn () => Color::hex($zeusField->options['hint']['color']));
Expand Down

0 comments on commit 812a313

Please sign in to comment.