Преглед на файлове

Replace custom tooltips with native ones of entries in contacts menu.

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
julia.kirschenheuter преди 1 година
родител
ревизия
ccf92975f3
променени са 6 файла, в които са добавени 2 реда и са изтрити 7 реда
  1. 0 5
      core/src/OC/contactsmenu.js
  2. 2 2
      core/src/OC/contactsmenu/contact.handlebars
  3. 0 0
      dist/core-login.js
  4. 0 0
      dist/core-login.js.map
  5. 0 0
      dist/core-main.js
  6. 0 0
      dist/core-main.js.map

+ 0 - 5
core/src/OC/contactsmenu.js

@@ -183,11 +183,6 @@ const ContactsListItemView = View.extend({
 		// Show placeholder if no avatar is available (avatar is rendered as img, not div)
 		this.$('div.avatar').imageplaceholder(this._model.get('fullName'))
 
-		// Show tooltip for top action
-		this.$('.top-action').tooltip({ placement: 'left' })
-		// Show tooltip for second action
-		this.$('.second-action').tooltip({ placement: 'left' })
-
 		return this
 	},
 

+ 2 - 2
core/src/OC/contactsmenu/contact.handlebars

@@ -28,7 +28,7 @@
 		</a>
 	{{/if}}
 	{{#if contact.topAction}}
-		<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}">
+		<a class="top-action" href="{{contact.topAction.hyperlink}}" title="{{contact.topAction.title}}" aria-label="{{contact.topAction.title}}">
 			<img src="{{contact.topAction.icon}}" alt="{{contact.topAction.title}}">
 		</a>
 	{{/if}}
@@ -49,7 +49,7 @@
 	</div>
 {{/if}}
 {{#if contact.hasTwoActions}}
-<a class="second-action" href="{{contact.secondAction.hyperlink}}" title="{{contact.secondAction.title}}">
+<a class="second-action" href="{{contact.secondAction.hyperlink}}" aria-label="{{contact.secondAction.title}}" title="{{contact.secondAction.title}}">
 	<img src="{{contact.secondAction.icon}}" alt="{{contact.secondAction.title}}">
 </a>
 {{/if}}

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/core-login.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/core-login.js.map


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/core-main.js


Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/core-main.js.map


Някои файлове не бяха показани, защото твърде много файлове са промени