Page MenuHomePhabricator

[web] [refactor] css thread tab css logic
ClosedPublic

Authored by benschac on Mar 1 2022, 3:10 PM.
Tags
None
Referenced Files
F3726840: D3318.id10236.diff
Wed, Jan 8, 8:36 PM
F3726839: D3318.id10045.diff
Wed, Jan 8, 8:36 PM
F3726838: D3318.id10007.diff
Wed, Jan 8, 8:36 PM
F3726827: D3318.id.diff
Wed, Jan 8, 8:35 PM
F3726786: D3318.diff
Wed, Jan 8, 8:28 PM
Unknown Object (File)
Fri, Dec 27, 8:43 AM
Unknown Object (File)
Fri, Dec 27, 8:43 AM
Unknown Object (File)
Fri, Dec 27, 8:43 AM

Details

Summary

make css and react classnames a bit simpler. We didn't need the additional active and inactive classes and true css in the classname definition.

Screen Recording 2022-03-01 at 06.10.46 PM.gif (440×887 px, 320 KB)

Test Plan

Toggle chat tabs, functionality should remain the same

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

benschac added inline comments.
web/chat/chat-tabs.css
39 ↗(On Diff #10007)

I can remove this too.

css thread tab css logic

Nit: think we could probably have a more descriptive title for this diff

This revision is now accepted and ready to land.Mar 3 2022, 10:49 AM
This revision now requires review to proceed.Mar 3 2022, 10:49 AM
ashoat added inline comments.
web/chat/chat-thread-tab.react.js
17–19 ↗(On Diff #10045)

Personally, I think it is more readable if you avoid simultaneously using two ways to declare CSS classes, and stick to just one way

This revision is now accepted and ready to land.Mar 3 2022, 10:23 PM