Skip to content

Commit

Permalink
fix(web-components): remove tabindex from slider thumb causing duplic…
Browse files Browse the repository at this point in the history
…ate focusable elements (#31402)
  • Loading branch information
chrisdholt authored Jun 4, 2024
1 parent 95251e7 commit 4f32e12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "fix(web-components): remove tabindex from slider thumb causing duplicate focus regions",
"packageName": "@fluentui/web-components",
"email": "13071055+chrisdholt@users.noreply.github.com",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion packages/web-components/src/slider/slider.template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ export function sliderTemplate<T extends Slider>(options: SliderOptions = {}): E
}

export const template: ElementViewTemplate<Slider> = sliderTemplate({
thumb: `<div class="thumb-cursor" tabindex="0"></div>`,
thumb: `<div class="thumb-cursor"></div>`,
});

0 comments on commit 4f32e12

Please sign in to comment.