FIX: uses aria-label instead of title as it's useless with popover (#7258)

This commit is contained in:
Joffrey JAFFEUX 2019-03-26 16:31:48 +01:00 committed by GitHub
parent 8fb63b2706
commit 52332ccd72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
$element
.html(DATE_TEMPLATE)
.attr("title", textPreview)
.attr("aria-label", textPreview)
.attr("data-html-tooltip", `<div class="previews">${htmlPreview}</div>`)
.addClass("cooked-date")
.find(".relative-time")

View File

@ -130,7 +130,7 @@ export function setup(helper) {
helper.whiteList([
"span.discourse-local-date",
"span[data-*]",
"span[title]"
"span[aria-label]"
]);
helper.registerOptions((opts, siteSettings) => {