mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
DEV: Remove href/auto-route attrs from buttons (#26247)
Those apply only to `a` elements
This commit is contained in:
parent
2db3ddb22e
commit
1f17602b86
@ -42,8 +42,6 @@ export default class Dropdown extends Component {
|
||||
class="button icon btn-flat"
|
||||
aria-expanded={{@active}}
|
||||
aria-haspopup="true"
|
||||
href={{@href}}
|
||||
data-auto-route="true"
|
||||
title={{i18n @title}}
|
||||
aria-label={{i18n @title}}
|
||||
id={{@iconId}}
|
||||
|
@ -37,12 +37,10 @@ export default class UserDropdown extends Component {
|
||||
class="icon btn-flat"
|
||||
aria-haspopup="true"
|
||||
aria-expanded={{@active}}
|
||||
href={{this.currentUser.path}}
|
||||
aria-label={{i18n
|
||||
"user.account_possessive"
|
||||
name=(or this.currentUser.name this.currentUser.username)
|
||||
}}
|
||||
data-auto-route="true"
|
||||
{{on "click" this.click}}
|
||||
>
|
||||
<Notifications @active={{@active}} />
|
||||
|
@ -187,11 +187,9 @@ createWidget(
|
||||
attributes: {
|
||||
"aria-haspopup": true,
|
||||
"aria-expanded": attrs.active,
|
||||
href: attrs.user.path,
|
||||
"aria-label": I18n.t("user.account_possessive", {
|
||||
name: attrs.user.name || attrs.user.username,
|
||||
}),
|
||||
"data-auto-route": true,
|
||||
},
|
||||
},
|
||||
this.attach("header-notifications", attrs)
|
||||
@ -222,8 +220,6 @@ createWidget(
|
||||
attributes: {
|
||||
"aria-expanded": attrs.active,
|
||||
"aria-haspopup": true,
|
||||
href: attrs.href,
|
||||
"data-auto-route": true,
|
||||
title,
|
||||
"aria-label": title,
|
||||
id: attrs.iconId,
|
||||
|
Loading…
Reference in New Issue
Block a user