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:
Paths
| Differential D3373 Authored by • jacek on Mar 9 2022, 3:20 AM.
Details Summary Test Plan Run web app and try to switch Between Focus and Background tabs. It should work as before.
Diff Detail
Event TimelineHerald added subscribers: • benschac, • karol, atul and 2 others. · View Herald TranscriptMar 9 2022, 3:20 AM2022-03-09 03:20:46 (UTC-8) Harbormaster completed remote builds in B7232: Diff 10186.Mar 9 2022, 3:25 AM2022-03-09 03:25:51 (UTC-8) • jacek edited the summary of this revision. (Show Details)Mar 9 2022, 3:28 AM2022-03-09 03:28:30 (UTC-8) • jacek added a parent revision: D3369: [web] Introduce common `Tabs` component.Mar 9 2022, 5:56 AM2022-03-09 05:56:36 (UTC-8) Comment 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
This revision now requires changes to proceed.Mar 10 2022, 2:50 AM2022-03-10 02:50:35 (UTC-8) Harbormaster completed remote builds in B7302: Diff 10301.Mar 11 2022, 7:32 AM2022-03-11 07:32:21 (UTC-8) Harbormaster completed remote builds in B7304: Diff 10303.Mar 11 2022, 7:52 AM2022-03-11 07:52:21 (UTC-8)
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 This revision is now accepted and ready to land.Mar 14 2022, 9:21 PM2022-03-14 21:21:01 (UTC-7) Harbormaster completed remote builds in B7743: Diff 10859.Mar 31 2022, 2:53 AM2022-03-31 02:53:12 (UTC-7) Harbormaster completed remote builds in B7790: Diff 10932.Apr 1 2022, 2:52 AM2022-04-01 02:52:09 (UTC-7) Closed by commit rCOMMed8a73deeb7d: [web] Refactor `ChatTabs` to use `Tabs` component (authored by • jacek). · Explain WhyApr 1 2022, 3:50 AM2022-04-01 03:50:54 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 10303 web/chat/chat-tabs.css
web/chat/chat-tabs.react.js
web/chat/chat-thread-tab.react.js
|