-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(organizations): add theming/story for Mantine TextInput TASK-1378 #5424
Conversation
to make it easier to migrate existing styles
…o kalvis/mantine-setup
### 📣 Summary Adds theming and storybook entry for Mantine Menu component. ### 📖 Description Adds basic theming for the Mantine Menu component, primarily aimed at providing necessary style and functionality for use in the organization members list. In this context, the Menu component will be replacing KoboDropdown, but the latter is used, for example, as a building block of KoboSelect, so not all uses of KoboDropdown are under consideration here. ### 👀 Preview steps Run storybook and compare "Dropdown" story to the Actions dropdown (right side icon button) currently used in the organization Member table. --------- Co-authored-by: Paulo Amorim <[email protected]>
In the docs they suggest to use CSS modules due to performance instead of the vars approach, and also I believe it's clearer to set the CSS directly instead of setting the variables. Just my opinion. I've created a draft PR with some changes fr us to talk about when possible: https://github.com/kobotoolbox/kpi/pull/5444/files |
@magicznyleszek @pauloamorimbr I have updated this PR after working with Paulo on a better approach: I removed the wrapped component. The main reason I used a wrapped component was for replacing right-side icons with an error icon when the input has errors. But our designs don't actually include that right-side error icon, so I decided to stick with a simpler implementation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 really simple fixes and it seems ready to go! 💯
jsapp/js/theme/kobo/InputWrapper.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this file is not being used anymore! 🤔
Co-authored-by: Paulo Amorim <[email protected]>
🗒️ Checklist
<type>(<scope>)<!>: <title> TASK-1234
frontend
orbackend
unless it's global📣 Summary
Add theming and storybook for custom TextInput component.
💭 Notes
👀 Preview steps