Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use svg directive instead of Blade component for icons #271

Merged
merged 1 commit into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/views/components/clipboard-link.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<a x-data="{}"
x-on:click.prevent="window.navigator.clipboard.writeText(@js($data));$tooltip('{{ __('filament-breezy::default.clipboard.tooltip') }}');"
href="#" class="flex items-center">
<x-heroicon-s-clipboard-document class="w-4 mr-2" />
@svg('heroicon-s-clipboard-document', 'w-4 mr-2')
<span class="">{{ __('filament-breezy::default.clipboard.link') }}</span>
</a>
8 changes: 4 additions & 4 deletions resources/views/livewire/two-factor-authentication.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div style="{{ \Illuminate\Support\Arr::toCssStyles([\Filament\Support\get_color_css_variables('danger',shades: [300, 400, 500, 600])]) }}" class="p-4 rounded bg-custom-500">
<div class="flex">
<div class="flex-shrink-0">
<x-heroicon-s-shield-exclamation class="w-5 h-5 text-danger-600" />
@svg('heroicon-s-shield-exclamation', 'w-5 h-5 text-danger-600')
</div>
<div class="ml-3">
<p class="text-sm text-danger-500">
Expand All @@ -20,7 +20,7 @@

@unless ($user->hasEnabledTwoFactor())
<h3 class="flex items-center gap-2 text-lg font-medium">
<x-heroicon-o-exclamation-circle class="w-6"/>
@svg('heroicon-o-exclamation-circle', 'w-6')
{{__('filament-breezy::default.profile.2fa.not_enabled.title') }}
</h3>
<p class="text-sm">{{ __('filament-breezy::default.profile.2fa.not_enabled.description') }}</p>
Expand All @@ -32,7 +32,7 @@
@else
@if ($user->hasConfirmedTwoFactor())
<h3 class="flex items-center gap-2 text-lg font-medium">
<x-heroicon-o-shield-check class="w-6" />
@svg('heroicon-o-shield-check', 'w-6')
{{ __('filament-breezy::default.profile.2fa.enabled.title') }}
</h3>
<p class="text-sm">{{ __('filament-breezy::default.profile.2fa.enabled.description') }}</p>
Expand All @@ -55,7 +55,7 @@
</div>
@else
<h3 class="flex items-center gap-2 text-lg font-medium">
<x-heroicon-o-question-mark-circle class="w-6" />
@svg('heroicon-o-question-mark-circle', 'w-6')
{{ __('filament-breezy::default.profile.2fa.finish_enabling.title') }}
</h3>
<p class="text-sm">{{ __('filament-breezy::default.profile.2fa.finish_enabling.description') }}</p>
Expand Down