mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-27 19:06:23 +08:00
b27a5c7fb8
- Changed default focus styles - Updated dropdowns with keyboard navigation - Updated modals with esc exiting - Added accessibility attirbutes where needed - Made many more elements focusable - Updated hover effects of many items to also apply when focused within Related to #1320 and #1198
19 lines
694 B
PHP
19 lines
694 B
PHP
{{--
|
|
$target - CSS selector of items to expand
|
|
$key - Unique key for checking existing stored state.
|
|
--}}
|
|
<?php $isOpen = setting()->getForCurrentUser('section_expansion#'. $key); ?>
|
|
<button type="button" expand-toggle="{{ $target }}"
|
|
expand-toggle-update-endpoint="{{ url('/settings/users/'. $currentUser->id .'/update-expansion-preference/' . $key) }}"
|
|
expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
|
|
class="text-muted icon-list-item text-primary">
|
|
<span>@icon('expand-text')</span>
|
|
<span>{{ trans('common.toggle_details') }}</span>
|
|
</button>
|
|
@if($isOpen)
|
|
@push('head')
|
|
<style>
|
|
{{ $target }} {display: block;}
|
|
</style>
|
|
@endpush
|
|
@endif
|