Depends on D5110
Introducing a simple ModalLabel component, which will be used in e.g. SubchannelComposer
Figma:
https://www.figma.com/file/a1nkbWgbgjRlrOY9LVurTz/Comm-%2F-Desktop-app?node-id=1077%3A70464
Paths
| Differential D5113 Authored by • jakub on Sep 12 2022, 7:11 AM.
Details Summary Depends on D5110 Introducing a simple ModalLabel component, which will be used in e.g. SubchannelComposer Figma: Test Plan This component will be used in next diffs (firstly in SubchannelComposer). Currently, no changes in the app.
Diff Detail
Event TimelineHerald added subscribers: • abosh, atul, tomek, ashoat. · View Herald TranscriptSep 12 2022, 7:11 AM2022-09-12 07:11:48 (UTC-7) Harbormaster completed remote builds in B12084: Diff 16585.Sep 12 2022, 7:22 AM2022-09-12 07:22:36 (UTC-7) • jakub retitled this revision from [web] Introducing ModalLabel to [web] Introducing `ModalLabel` component.Sep 12 2022, 8:22 AM2022-09-12 08:22:35 (UTC-7) • jakub added a parent revision: D5110: [web] Fix warning - set readOnly param to EnumSettingOption radio. Comment Actions Looks good at a high level! Requested two changes to maintain consistency with the rest of the codebase
This revision now requires changes to proceed.Sep 15 2022, 7:35 AM2022-09-15 07:35:26 (UTC-7) Harbormaster completed remote builds in B12198: Diff 16733.Sep 16 2022, 1:34 AM2022-09-16 01:34:19 (UTC-7) Comment Actions Overall I'm not really sure if introducing components that are that simple is beneficial. It is just a simple div with a class, so maybe it would be better to just have div with a class where this component would be used? (not sure, it depends on the rest of the stack). Usually, when we have a component which renders a single prop, we can consider using children instead - that is more reusable, but not sure if it applies here.
This revision now requires changes to proceed.Sep 16 2022, 10:53 AM2022-09-16 10:53:13 (UTC-7) Comment Actions After discussion in real life, I decided to abandon this diff and include this component directly to ComposeSubchannel
Revision Contents
Diff 16733 web/components/modal-label.css
web/components/modal-label.react.js
|