Page MenuHomePhabricator

[web] Introduce custom `Radio` component
ClosedPublic

Authored by jacek on May 6 2022, 7:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 6:10 AM
Unknown Object (File)
Sat, Nov 9, 11:40 PM
Unknown Object (File)
Sat, Nov 9, 9:45 PM
Unknown Object (File)
Sat, Nov 9, 7:42 PM
Unknown Object (File)
Sat, Nov 9, 5:53 PM
Unknown Object (File)
Sat, Nov 9, 5:08 PM
Unknown Object (File)
Sat, Nov 9, 5:03 PM
Unknown Object (File)
Sat, Nov 9, 4:23 PM

Details

Summary

Introduce custom "Radio" component matching the one from our design system.

GIF:

Screenshot_Google Chrome_2022-05-06_162119.gif (152×174 px, 41 KB)

Test Plan

The component is not used yet, tested when introducing notification settings.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jacek edited the test plan for this revision. (Show Details)
jacek added reviewers: tomek, benschac, atul.
jacek edited the summary of this revision. (Show Details)

The animation looks great!

(Looks like we can use this for the "Visibility" tab of the ThreadSettingsModal as well)

web/components/radio.css
2 ↗(On Diff #12354)

"The appearance CSS property is used to control native appearance of UI controls, that are based on operating system's theme."

Makes sense

This revision is now accepted and ready to land.May 6 2022, 7:59 AM

Dang, looks like there is some visual weirdness on Safari (though it looks perfect on Chrome). Will take a quick look to see if it's easy to resolve since I plan on using the Radio component in the ThreadSettingsPrivacyTab component.


edit: Just kidding, looks like this issue was resolved after updating Safari (as part of updating macOS)