joven-health-mike / juno-react

A virtual therapy platform designed for K-12 schools.
0 stars 0 forks source link

CSS refactoring #62

Closed joven-health-mike closed 1 year ago

joven-health-mike commented 1 year ago
zoe-gonzales commented 1 year ago

Hi @joven-health-mike ! Here's the plan I have so far for migrating the CSS to styled components. Let me know if I missed anything or if you have questions or feedback.

✅ PR 1:

✅ PR 2:

✅ PR 3:

✅ PR 4:

✅ PR 5:

Refactoring of styles to use mixins whenever possible will be done when defining each styled component. I think this will be easier than refactoring separately afterwards. I anticipate there being many opportunities to reuse mixins especially with the basic HTML elements.

Finally a quick question, where does the button-x class come from? I tried searching for its definition in the code but didn't see it anywhere.

joven-health-mike commented 1 year ago

Thanks @zoe-gonzales, this plan looks good to me. Let me know in Slack when you're ready for me to review any PRs.

Good catch on the button-x class, it doesn't look like it's implemented. The XButton component builds all of the little icons in each table, so we may want to style those differently, depending on which button it is (e.g. delete button has a red background, etc). That might change once I get feedback from a graphic designer, but I want to have the ability to change those based on what we're using the XButton for.

zoe-gonzales commented 1 year ago

Thanks @zoe-gonzales, this plan looks good to me. Let me know in Slack when you're ready for me to review any PRs.

Good catch on the button-x class, it doesn't look like it's implemented. The XButton component builds all of the little icons in each table, so we may want to style those differently, depending on which button it is (e.g. delete button has a red background, etc). That might change once I get feedback from a graphic designer, but I want to have the ability to change those based on what we're using the XButton for.

Ok got it! Good to know, I thought it might have come from a library or something. Sounds good to me, I'll get started on that work!