Page MenuHomePhabricator

[web] deprecate and clean up unused tabs code
ClosedPublic

Authored by ginsu on Jan 4 2024, 1:41 AM.
Tags
None
Referenced Files
F2902598: D10524.diff
Sat, Oct 5, 6:15 PM
Unknown Object (File)
Thu, Oct 3, 12:02 PM
Unknown Object (File)
Sun, Sep 29, 3:05 AM
Unknown Object (File)
Thu, Sep 19, 8:40 PM
Unknown Object (File)
Tue, Sep 17, 1:20 PM
Unknown Object (File)
Sat, Sep 14, 9:18 PM
Unknown Object (File)
Sat, Sep 14, 9:18 PM
Unknown Object (File)
Sat, Sep 14, 9:18 PM
Subscribers

Details

Summary

Now that all the use cases of the tabs component has been updated to use the new tabs component api, we can deprecate our legacy tabs component. Also in this diff took a moment to update the color variables for the tabs style to use the new color design system naming convention

Depends on D10523

Test Plan

flow + confirmed that the tabs had no visual regression

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu added reviewers: atul, inka.
ginsu edited the summary of this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)
web/components/tabs-header.js
22

The extra lines are intentional, I found that this component was really cramped and I thought it was easier to read if the different parts had room to breathe

26

Thought "in active" was a better variable name than "background" for describing in what situations these styles are used

web/components/tabs-pill.css
1–21

These styles were used in the tabs-legacy file

ginsu requested review of this revision.Jan 4 2024, 1:59 AM

Nit, but let's make sure that we change inActiveTabHeader to inactiveTabHeader before landing

web/components/tabs-header.js
26

"inactive" is single word so we should rename this something like inactiveTabHeader

This revision is now accepted and ready to land.Jan 4 2024, 1:25 PM

address comments + rebase before landing

forgot to hit save in editor