FIX: ensures category row is not focusable (#29803)

This commit is contained in:
Joffrey JAFFEUX 2024-11-19 03:50:32 +01:00 committed by GitHub
parent 79ffbe7cd5
commit 55a074e4c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -106,7 +106,7 @@ export default class CategoryRow extends Component {
get badgeForCategory() {
return htmlSafe(
categoryBadgeHTML(this.category, {
link: this.categoryLink,
link: false,
allowUncategorized:
this.allowUncategorizedTopics || this.allowUncategorized,
hideParent: !!this.parentCategory,
@ -122,7 +122,7 @@ export default class CategoryRow extends Component {
get badgeForParentCategory() {
return htmlSafe(
categoryBadgeHTML(this.parentCategory, {
link: this.categoryLink,
link: false,
allowUncategorized:
this.allowUncategorizedTopics || this.allowUncategorized,
recursive: true,
@ -285,7 +285,7 @@ export default class CategoryRow extends Component {
{{on "click" this.handleClick}}
{{on "keydown" this.handleKeyDown}}
aria-checked={{this.isSelected}}
tabindex="0"
tabindex="-1"
>
{{#if this.category}}

View File

@ -10,7 +10,7 @@ export default class NoneCategoryRow extends CategoryRowComponent {
badgeForCategory(category) {
return htmlSafe(
categoryBadgeHTML(category, {
link: this.categoryLink,
link: false,
allowUncategorized: true,
hideParent: true,
})