This commit is contained in:
Dan Harrin
2023-02-26 22:09:26 +00:00
parent 94b969413f
commit 7668cea45c
3 changed files with 22 additions and 9 deletions
+11
View File
@@ -134,6 +134,17 @@ The Heroicons library has been updated to v2. This means that any icons you use
### Medium impact changes
#### Date-time pickers
The date-time picker form field now uses the browser's native date picker by default. It usually has a better UX than the old date picker, but you may notice features missing, bad browser compatibility, or behavioural bugs. If you want to revert to the old date picker, you can use the `native(false)` method:
```php
use Filament\Forms\Components\DateTimePicker;
DateTimePicker::make('published_at')
->native(false)
```
#### Secondary color
Filament v2 had a `secondary` color for many components which was gray. Now, you can define a non-gray `secondary` color alongside `primary`. All references to `secondary` should be replaced with `gray` to preserve the same appearance.
+11
View File
@@ -61,6 +61,17 @@ The Heroicons library has been updated to v2. This means that any icons you use
### Medium impact changes
#### Date-time pickers
The date-time picker form field now uses the browser's native date picker by default. It usually has a better UX than the old date picker, but you may notice features missing, bad browser compatibility, or behavioural bugs. If you want to revert to the old date picker, you can use the `native(false)` method:
```php
use Filament\Forms\Components\DateTimePicker;
DateTimePicker::make('published_at')
->native(false)
```
#### Secondary color
Filament v2 had a `secondary` color for many components which was gray. Now, you can define a non-gray `secondary` color alongside `primary`. All references to `secondary` should be replaced with `gray` to preserve the same appearance.
-9
View File
@@ -64,12 +64,3 @@ The Heroicons library has been updated to v2. This means that any icons you use
#### Secondary color
Filament v2 had a `secondary` color for many components which was gray. Now, you can define a non-gray `secondary` color alongside `primary`. All references to `secondary` should be replaced with `gray` to preserve the same appearance.
#### `$get` and `$set` closure parameters
In the forms package, `$get` and `$set` parameters now use a type of either `\Filament\Forms\Get` or `\Filament\Forms\Set` instead of `\Closure`. This allows for better IDE autocomplete support of the parameters of each function.
An easy way to upgrade your code quickly is to find and replace:
- `Closure $get` to `\Filament\Forms\Get $get`
- `Closure $set` to `\Filament\Forms\Set $set`