kirbydesign / designsystem

Kirby Design System
https://cookbook.kirby.design
MIT License
84 stars 22 forks source link

Tab Navigation: Set selected and focussed tabs on changes #3418

Closed RasmusKjeldgaard closed 6 months ago

RasmusKjeldgaard commented 6 months ago

This PR closes #3420

What is the new behavior?

If slotted tab-navigation-items change, we update selected and focussed tabs accordingly. This allows users to set new values for selectedIndex and focusIndex when adding or removing items, so the template and logic stays in sync.

Does this PR introduce a breaking change?

Checklist:

The following tasks should be carried out in sequence in order to follow the process of contributing correctly.

Reminders

Review

When the pull request has been approved it will be merged to develop by Team Kirby.