mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 b01d032d0d
			
		
	
	b01d032d0d
	
	
	
		
			
			* Enhancement: Updates sidebar to a new design (#2733) * feat: Changes primary navbar to new design (#2598) * feat: updates design for secondary navbar (#2612) * Changes primary nvbar to new design * Updates design for contexual sidebar * Fixes issues with JSON * Remove duplication of notificatons in Navigation * Fixes broken tests * Fixes broken tests * Update app/javascript/dashboard/components/layout/AvailabilityStatus.vue * Update app/javascript/dashboard/components/layout/AvailabilityStatus.vue * Update app/javascript/dashboard/components/layout/SidebarItem.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Update app/javascript/dashboard/components/layout/SidebarItem.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Update app/javascript/dashboard/modules/sidebar/components/Secondary.vue Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> * Chore: Update design changes to features * Fixes menu transitions and refactors code * Refactors sidebar routeing logic * lint error fixes * Fixes dropdown menu styles * Fixes secondary new item links * Fixes lint scss issues * fixes linter issues * Fixes broken test cases * Update AvailabilityStatus.spec.js * Review feedbacks * Fixes add modal for label * Add tooltip for primary menu item * Tooltip for notifications * Adds tooltip for primary menu items * Review fixes * Review fixes * Fix merge issues * fixes logo size for login pages * fixes Merge breaks with styles Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			57 lines
		
	
	
		
			1016 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1016 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <template>
 | |
|   <li
 | |
|     class="dropdown-menu__item"
 | |
|     :class="{
 | |
|       'is-disabled': disabled,
 | |
|     }"
 | |
|     :tabindex="disabled ? null : -1"
 | |
|     :aria-disabled="disabled"
 | |
|   >
 | |
|     <slot></slot>
 | |
|   </li>
 | |
| </template>
 | |
| <script>
 | |
| export default {
 | |
|   name: 'WootDropdownItem',
 | |
|   componentName: 'WootDropdownMenu',
 | |
|   props: {
 | |
|     disabled: {
 | |
|       type: Boolean,
 | |
|       default: false,
 | |
|     },
 | |
|     className: {
 | |
|       type: String,
 | |
|       default: '',
 | |
|     },
 | |
|   },
 | |
| };
 | |
| </script>
 | |
| <style lang="scss" scoped>
 | |
| .dropdown-menu__item {
 | |
|   list-style: none;
 | |
| 
 | |
|   ::v-deep {
 | |
|     a,
 | |
|     .button {
 | |
|       width: 100%;
 | |
|       text-align: left;
 | |
|       color: var(--s-700);
 | |
|       white-space: nowrap;
 | |
|       display: inline-flex;
 | |
|       padding: var(--space-small);
 | |
|       padding-top: var(--space-small);
 | |
|       padding-bottom: var(--space-small);
 | |
|       border-radius: var(--border-radius-normal);
 | |
| 
 | |
|       &:hover {
 | |
|         background: var(--color-background);
 | |
|       }
 | |
| 
 | |
|       &:focus {
 | |
|         background: var(--color-background);
 | |
|       }
 | |
|     }
 | |
|   }
 | |
| }
 | |
| </style>
 |