mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Merge pull request #6448 from filamentphp/load-600-font-weight
Load 600 font weight
This commit is contained in:
@@ -11,7 +11,7 @@ class BunnyFontProvider implements Contracts\FontProvider
|
||||
public function getHtml(string $family, ?string $url = null): Htmlable
|
||||
{
|
||||
$family = Str::kebab($family);
|
||||
$url ??= "https://fonts.bunny.net/css?family={$family}:400,500,700&display=swap";
|
||||
$url ??= "https://fonts.bunny.net/css?family={$family}:400,500;600,700&display=swap";
|
||||
|
||||
return new HtmlString("
|
||||
<link rel=\"preconnect\" href=\"https://fonts.bunny.net\">
|
||||
|
||||
@@ -10,7 +10,7 @@ class GoogleFontProvider implements Contracts\FontProvider
|
||||
public function getHtml(string $family, ?string $url = null): Htmlable
|
||||
{
|
||||
$family = urlencode($family);
|
||||
$url ??= "https://fonts.googleapis.com/css2?family={$family}:wght@400;500;700&display=swap";
|
||||
$url ??= "https://fonts.googleapis.com/css2?family={$family}:wght@400;500;600;700&display=swap";
|
||||
|
||||
return new HtmlString("
|
||||
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
|
||||
|
||||
Reference in New Issue
Block a user