Page MenuHomePhabricator

[web] Add expand buttons
ClosedPublic

Authored by inka on Jan 4 2023, 3:50 AM.
Tags
None
Referenced Files
F1780719: D6158.id22523.diff
Sat, May 18, 5:23 AM
F1780297: D6158.id22563.diff
Sat, May 18, 3:46 AM
F1779888: D6158.id20564.diff
Sat, May 18, 1:52 AM
F1779690: D6158.id22435.diff
Fri, May 17, 11:55 PM
F1779618: D6158.id22465.diff
Fri, May 17, 11:37 PM
F1779601: D6158.id.diff
Fri, May 17, 11:09 PM
Unknown Object (File)
Sat, May 4, 9:23 AM
Unknown Object (File)
Fri, May 3, 7:26 AM
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.