mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-01 15:09:33 +08:00
wip
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user