Closed marcoseiza closed 1 month ago
The web component button implementation doesn't have a title attribute. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title)
title
This means that the button doesn't show a tooltip when keyboard focused.
<fast-button title="test"></fast-button>
Both hover and keyboard focus should show a tooltip.
Add a title attribute to web-components/fast-foundation/src/button
This is an accessibility concern with the button implementation.
Unfortunately @microsoft/fast-foundation is being deprecated, refer to #6955.
@microsoft/fast-foundation
🐛 Bug Report
The web component button implementation doesn't have a
title
attribute. (https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title)This means that the button doesn't show a tooltip when keyboard focused.
💻 Repro or Code Sample
<fast-button title="test"></fast-button>
🤔 Expected Behavior
Both hover and keyboard focus should show a tooltip.
💁 Possible Solution
Add a title attribute to web-components/fast-foundation/src/button
🔦 Context
This is an accessibility concern with the button implementation.