Used introduced Tabs component in ChatTabs, replacing existing solution. Chat borders design now matches Figma design and elements have onHover effect. The behavior of panel should remain the same.
Before:
After:
Differential D3373
[web] Refactor `ChatTabs` to use `Tabs` component • jacek on Mar 9 2022, 3:20 AM. Authored by Tags None Referenced Files
Subscribers
Details Used introduced Tabs component in ChatTabs, replacing existing solution. Chat borders design now matches Figma design and elements have onHover effect. The behavior of panel should remain the same. Before: After: Run web app and try to switch Between Focus and Background tabs. It should work as before.
Diff Detail
Event TimelineComment Actions Just an idea: we can consider using children instead of a prop with an array. Initially I thought it might be complicated, but I used this approach in D3341 and it wasn't that hard
Comment Actions Makes sense to me! The Tabs.Item header prop probably could've been a Tabs.Header component, but it doesn't matter that much |