Page MenuHomePhabricator

[web] Add expand buttons
ClosedPublic

Authored by inka on Jan 4 2023, 3:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 9:32 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:31 PM
Unknown Object (File)
Wed, Apr 3, 9:30 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #20564)
.buttonWrapper {
  font-size: 12px;
  width: 24px;
  height: 24px;
}

Could this be simplified to something like this?

web/sidebar/expand-buttons.react.js
12 ↗(On Diff #20564)
30–36 ↗(On Diff #20564)

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.