Page MenuHomePhabricator

[web] [refactor] change input buttons to <Button /> component
ClosedPublic

Authored by benschac on Mar 14 2022, 12:01 PM.
Tags
None
Referenced Files
F3738340: D3425.diff
Thu, Jan 9, 8:50 AM
Unknown Object (File)
Mon, Jan 6, 11:42 PM
Unknown Object (File)
Mon, Jan 6, 11:42 PM
Unknown Object (File)
Mon, Jan 6, 11:42 PM
Unknown Object (File)
Mon, Jan 6, 11:42 PM
Unknown Object (File)
Mon, Jan 6, 11:41 PM
Unknown Object (File)
Mon, Jan 6, 11:35 PM
Unknown Object (File)
Nov 17 2024, 1:31 AM

Details

Summary

Replace all input elements that are submit buttons with HTML Button components. Right now all of the styling is still very off. We should use button elements and our button component in general.

before:

Image 2022-03-14 at 2.09.10 PM.jpg (918×1 px, 160 KB)

after:
Image 2022-03-14 at 2.10.57 PM.jpg (740×1 px, 86 KB)

danger:

Image 2022-03-14 at 3.09.55 PM.jpg (704×1 px, 63 KB)

gif:

Screen Recording 2022-03-14 at 02.40.19 PM.gif (377×653 px, 199 KB)

Test Plan

Make sure functionality still works. I tested the button elements and they all seem to be working.

Diff Detail

Repository
rCOMM Comm
Branch
remove-remaining-input-elements
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

benschac added reviewers: jacek, tomek.
benschac edited the summary of this revision. (Show Details)
tomek added inline comments.
web/modals/threads/thread-settings-modal.react.js
474 ↗(On Diff #10358)

Is there a way to choose a type which doesn't need to be modified when changing element type? We're not using anything input or button specific, so maybe SyntheticEvent<HTMLElement>?

This revision is now accepted and ready to land.Mar 15 2022, 11:34 AM

diff review, change HTMLButtionElement to HTMLElement