mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
A11Y: Header icons should be buttons, not links (#20242)
This commit is contained in:
@@ -230,7 +230,7 @@ createWidget(
|
||||
|
||||
html(attrs) {
|
||||
return h(
|
||||
"a.icon",
|
||||
"button.icon.btn-flat",
|
||||
{
|
||||
attributes: {
|
||||
"aria-haspopup": true,
|
||||
@@ -263,7 +263,7 @@ createWidget(
|
||||
}
|
||||
|
||||
return h(
|
||||
"a.icon.btn-flat",
|
||||
"button.icon.btn-flat",
|
||||
{
|
||||
attributes: {
|
||||
"aria-expanded": attrs.active,
|
||||
|
||||
@@ -117,6 +117,8 @@
|
||||
float: left;
|
||||
}
|
||||
.icon {
|
||||
box-sizing: content-box;
|
||||
appearance: none;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<a
|
||||
href={{this.href}}
|
||||
tabindex="0"
|
||||
class={{concat-class "icon" (if this.isActive "active")}}
|
||||
class={{concat-class "icon btn-flat" (if this.isActive "active")}}
|
||||
>
|
||||
{{d-icon "comment"}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user