feat: add default value for activeid
to Tabs
#6455
Labels
area:fast-foundation
Pertains to fast-foundation
bug
A bug
community:request
Issues specifically reported by a member of the community.
status:needs-investigation
Needs additional investigation
🙋 Feature Request
When
Tabs
does not have the activeid attribute explicitly set by a developer, the active indicator jumps beyond the next tab that is clicked on before settling into the correct position. By setting the activeid this behavior does not happen.🤔 Expected Behavior
If the active indicator is enabled, the animation for selecting tabs should function smoothly.
😯 Current Behavior
The active indicator jumps beyond the first tab selected by a user before settling on the selected tab if the activeid is not set.
💁 Possible Solution
Since
Tabs
assigns ids to its child tab elements in the event that page authors don't provide ids to the tabs, it should probably also set theactiveid
to the first non-disabled tab.💻 Examples
This behavior can be seen in both the now archived
fast-components
package https://explore.fast.design/components/fast-tabs and the vNext storybook example.The text was updated successfully, but these errors were encountered: