Page MenuHomePhabricator

[web] Add expand buttons
ClosedPublic

Authored by inka on Jan 4 2023, 3:50 AM.
Tags
None
Referenced Files
F1699764: D6158.diff
Sat, May 4, 9:23 AM
Unknown Object (File)
Fri, May 3, 7:26 AM
Unknown Object (File)
Apr 3 2024, 9:32 PM
Unknown Object (File)
Apr 3 2024, 9:31 PM
Unknown Object (File)
Apr 3 2024, 9:31 PM
Unknown Object (File)
Apr 3 2024, 9:31 PM
Unknown Object (File)
Apr 3 2024, 9:31 PM
Unknown Object (File)
Apr 3 2024, 9:31 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.