change divs to spans to be more Valid™

pull/27/head
Ondřej Hruška 6 years ago
parent bfdf1ece5a
commit 3f74e15115
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 8
      resources/views/layouts/nav-buttons.blade.php

@ -20,12 +20,12 @@ $aclass = $dropdown ? 'dropdown-item' : 'nav-link';
<form method="POST" action="{{ route('toggle-dark-mode') }}" aria-hidden="true"> <form method="POST" action="{{ route('toggle-dark-mode') }}" aria-hidden="true">
@csrf @csrf
<button id="toggle-dark-mode-btn" class="btn-link border-0 {{ $aclass }}" type="submit" onclick="event.preventDefault(); toggleDarkMode();"> <button id="toggle-dark-mode-btn" class="btn-link border-0 {{ $aclass }}" type="submit" onclick="event.preventDefault(); toggleDarkMode();">
<div class="dark-mode-switch-on"> <span class="dark-mode-switch-on">
<i class="fa-sun-o fa-pr"></i>{{ __('Light Mode') }} <i class="fa-sun-o fa-pr"></i>{{ __('Light Mode') }}
</div> </span>
<div class="dark-mode-switch-off"> <span class="dark-mode-switch-off">
<i class="fa-moon-o fa-pr"></i>{{ __('Dark Mode') }} <i class="fa-moon-o fa-pr"></i>{{ __('Dark Mode') }}
</div> </span>
</button> </button>
</form> </form>

Loading…
Cancel
Save