Page MenuHomePhabricator

[web] Add expand buttons
ClosedPublic

Authored by inka on Jan 4 2023, 3:50 AM.
Tags
None
Referenced Files
F3357621: D6158.id22465.diff
Sun, Nov 24, 12:41 AM
F3357603: D6158.id22435.diff
Sun, Nov 24, 12:33 AM
F3357532: D6158.id20673.diff
Sun, Nov 24, 12:09 AM
F3357491: D6158.id20791.diff
Sat, Nov 23, 11:51 PM
F3357490: D6158.id22523.diff
Sat, Nov 23, 11:51 PM
F3356950: D6158.diff
Sat, Nov 23, 9:39 PM
Unknown Object (File)
Tue, Nov 19, 9:17 PM
Unknown Object (File)
Tue, Nov 19, 6:54 PM
Subscribers

Details

Summary

Add buttons to be used in community drawer to expand items.
Related issue
The same buttons on native : D5718

Test Plan

Displayed buttons in AppSwitcher, checked that they display as expected and onClick works

Diff Detail

Repository
rCOMM Comm
Branch
inka/community_drawer_web
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jan 4 2023, 4:05 AM

Is there a reason why we don't just have a disabled property in props?

web/sidebar/expand-buttons.react.js
20–26
.buttonWrapper {
  font-size: 12px;
  width: 24px;
  height: 24px;
}

Could this be simplified to something like this?

web/sidebar/expand-buttons.react.js
12
30–36

You can pass disabled props to ExpandButton and then to Button and create conditional style based on it if needed.

This revision now requires changes to proceed.Jan 5 2023, 4:19 AM

Address code review, simplify

This revision is now accepted and ready to land.Jan 10 2023, 12:36 AM
This revision now requires review to proceed.Jan 10 2023, 2:20 AM
tomek added inline comments.
web/sidebar/expand-buttons.css
10 ↗(On Diff #20673)

Please use a constant from typography.css.

This revision is now accepted and ready to land.Jan 10 2023, 10:27 AM

Use values from typography.css

This revision was automatically updated to reflect the committed changes.