mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update:Home shelf labels use h2 tag, play & edit buttons overlaying item page updated to button tag with aria-label for accessibility #3699
This commit is contained in:
		
							parent
							
								
									190a1000d9
								
							
						
					
					
						commit
						4610e58337
					
				| @ -17,7 +17,7 @@ | ||||
|     <div v-else-if="isAlternativeBookshelfView" class="w-full mb-24e"> | ||||
|       <template v-for="(shelf, index) in supportedShelves"> | ||||
|         <widgets-item-slider :shelf-id="shelf.id" :key="index + '.'" :items="shelf.entities" :continue-listening-shelf="shelf.id === 'continue-listening' || shelf.id === 'continue-reading'" :type="shelf.type" class="bookshelf-row pl-8e my-6e" @selectEntity="(payload) => selectEntity(payload, index)"> | ||||
|           <p class="font-semibold text-gray-100">{{ $strings[shelf.labelStringKey] }}</p> | ||||
|           <h2 class="font-semibold text-gray-100">{{ $strings[shelf.labelStringKey] }}</h2> | ||||
|         </widgets-item-slider> | ||||
|       </template> | ||||
|     </div> | ||||
|  | ||||
| @ -12,12 +12,12 @@ | ||||
|             <!-- Item Cover Overlay --> | ||||
|             <div class="absolute top-0 left-0 w-full h-full z-10 opacity-0 group-hover:opacity-100 pointer-events-none"> | ||||
|               <div v-show="showPlayButton && !isStreaming" class="h-full flex items-center justify-center pointer-events-none"> | ||||
|                 <div class="hover:text-white text-gray-200 hover:scale-110 transform duration-200 pointer-events-auto cursor-pointer" @click.stop.prevent="playItem"> | ||||
|                 <button class="hover:text-white text-gray-200 hover:scale-110 transform duration-200 pointer-events-auto cursor-pointer" :aria-label="$strings.ButtonPlay" @click.stop.prevent="playItem"> | ||||
|                   <span class="material-symbols fill text-4xl">play_arrow</span> | ||||
|                 </div> | ||||
|                 </button> | ||||
|               </div> | ||||
| 
 | ||||
|               <span class="absolute bottom-2.5 right-2.5 z-10 material-symbols text-lg cursor-pointer text-white text-opacity-75 hover:text-opacity-100 hover:scale-110 transform duration-200 pointer-events-auto" @click="showEditCover">edit</span> | ||||
|               <button class="absolute bottom-2.5 right-2.5 z-10 material-symbols text-lg cursor-pointer text-white text-opacity-75 hover:text-opacity-100 hover:scale-110 transform duration-200 pointer-events-auto" :aria-label="$strings.ButtonEdit" @click="showEditCover">edit</button> | ||||
|             </div> | ||||
|           </div> | ||||
|         </div> | ||||
| @ -87,7 +87,7 @@ | ||||
|             </ui-btn> | ||||
| 
 | ||||
|             <ui-btn v-else-if="isMissing || isInvalid" color="error" :padding-x="4" small class="flex items-center h-9 mr-2"> | ||||
|               <span v-show="!isStreaming" class="material-symbols text-2xl -ml-2 pr-1 text-white">error</span> | ||||
|               <span class="material-symbols text-2xl -ml-2 pr-1 text-white">error</span> | ||||
|               {{ isMissing ? $strings.LabelMissing : $strings.LabelIncomplete }} | ||||
|             </ui-btn> | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user