Page MenuHomePhabricator

[web] Add expand buttons
ClosedPublic

Authored by inka on Jan 4 2023, 3:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 9:17 PM
Unknown Object (File)
Tue, Nov 19, 6:54 PM
Unknown Object (File)
Fri, Nov 8, 10:16 PM
Unknown Object (File)
Mon, Nov 4, 11:07 AM
Unknown Object (File)
Mon, Oct 28, 8:29 AM
Unknown Object (File)
Oct 17 2024, 2:52 PM
Unknown Object (File)
Oct 17 2024, 1:31 AM
Unknown Object (File)
Oct 16 2024, 12:53 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
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 ↗(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

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.