]> BookStack Code Mirror - bookstack/commitdiff
Updated homepage action button colors for consistency
authorDan Brown <redacted>
Fri, 4 Jun 2021 21:28:38 +0000 (22:28 +0100)
committerDan Brown <redacted>
Fri, 4 Jun 2021 21:28:38 +0000 (22:28 +0100)
Were previously inconsistent with other homepage buttons for non-default
homepage options.

resources/views/common/home-book.blade.php
resources/views/common/home-custom.blade.php
resources/views/common/home-shelves.blade.php
resources/views/common/home.blade.php
resources/views/components/expand-toggle.blade.php

index 1c18edb246bc1ce93040c7af6325d2a0250647c1..9f62d21e7b1c4e1f708e5fc7230f00faf765c8e3 100644 (file)
@@ -19,8 +19,8 @@
                 </a>
             @endif
             @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
                 </a>
             @endif
             @include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
-            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-            @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
+            @include('components.expand-toggle', ['classes' => 'text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
+            @include('partials.dark-mode-toggle', ['classes' => 'icon-list-item text-primary'])
         </div>
     </div>
 @stop
         </div>
     </div>
 @stop
index e0820305746c799d5d2deb890849397b98f1f70d..a22e2600228ceac320eb57b78fb965d52a159d4a 100644 (file)
@@ -18,8 +18,8 @@
     <div class="actions mb-xl">
         <h5>{{ trans('common.actions') }}</h5>
         <div class="icon-list text-primary">
     <div class="actions mb-xl">
         <h5>{{ trans('common.actions') }}</h5>
         <div class="icon-list text-primary">
-            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-            @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
+            @include('components.expand-toggle', ['classes' => 'text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
+            @include('partials.dark-mode-toggle', ['classes' => 'icon-list-item text-primary'])
         </div>
     </div>
 @stop
\ No newline at end of file
         </div>
     </div>
 @stop
\ No newline at end of file
index 957fa6578fffd35e349c550fdf521a237fd09440..3c32fed740f7c70cb75f0da56b1eb8842eea6cff 100644 (file)
@@ -19,8 +19,8 @@
                 </a>
             @endif
             @include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
                 </a>
             @endif
             @include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
-            @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
-            @include('partials.dark-mode-toggle', ['classes' => 'text-muted icon-list-item text-primary'])
+            @include('components.expand-toggle', ['classes' => 'text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
+            @include('partials.dark-mode-toggle', ['classes' => 'icon-list-item text-primary'])
         </div>
     </div>
 @stop
         </div>
     </div>
 @stop
index 3a360b19cc16ac7f12d1a7f1564ff4ccd1e67ae5..187f222b50f1b7b524f9b899d90dd7fb74fade0a 100644 (file)
@@ -6,7 +6,7 @@
         <div class="grid half">
             <div>
                 <div class="icon-list inline block">
         <div class="grid half">
             <div>
                 <div class="icon-list inline block">
-                    @include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
+                    @include('components.expand-toggle', ['classes' => 'text-muted text-primary', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
                 </div>
             </div>
             <div class="text-m-right">
                 </div>
             </div>
             <div class="text-m-right">
index 0c14490386b0cfb968c00f7d06a535ab2570a6ea..8ed7ff6e036167cb97a7428a57bb906d2f2e7f1e 100644 (file)
@@ -6,7 +6,7 @@ $key - Unique key for checking existing stored state.
 <button type="button" expand-toggle="{{ $target }}"
    expand-toggle-update-endpoint="{{ url('/settings/users/'. user()->id .'/update-expansion-preference/' . $key) }}"
    expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
 <button type="button" expand-toggle="{{ $target }}"
    expand-toggle-update-endpoint="{{ url('/settings/users/'. user()->id .'/update-expansion-preference/' . $key) }}"
    expand-toggle-is-open="{{ $isOpen ? 'yes' : 'no' }}"
-   class="text-muted icon-list-item text-primary">
+   class="icon-list-item {{ $classes ?? '' }}">
     <span>@icon('expand-text')</span>
     <span>{{ trans('common.toggle_details') }}</span>
 </button>
     <span>@icon('expand-text')</span>
     <span>{{ trans('common.toggle_details') }}</span>
 </button>