You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. You'll need to update the `Fieldset` component so that it doesn't render the `helperText` when it is not supplied. That means changing the Fieldset component [here](https://github.com/nursefly/nursefly-web/blob/216c134649587c042499d03bd98da1bb29118920/components/inputs/Fieldset/Fieldset.js#L45-L50) as follows:
The one thing you'll need to do is update the info prop on Rating to be PropTypes.node instead of PropTypes.oneOfType([PropTypes.number, PropTypes.string]),. That should be a backwards compatible change with no side effects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TL;DR: Emotion can be used to replace a lot of complexity in how styles are applied in Instructure UI and help get us on something that is well maintained with broad adoption. Our stylesheets will be messier but our DOM output will be much cleaner (and smaller). The difficulty of the migration will depend a lot on the complexity of each component. To stay performant, we will need to consolidate CSS rules. We will also need to provide some workarounds for things PostCSS was doing before. Because of this, we will want to have visual regression testing to catch any CSS issues introduced early. The work can be done in parallel for each package.
Goal
Simplify the process for styling components and runtime theme switching with a library that has large mainstream adoption to help with downstream maintainability of Instructure UI.
Requirements
Should support runtime theme switching
Should easily integrate with existing instui configuration/be able to coexist with it so we c
Create a starter app for instui with all the boilerplate taken care of out of the box (similar to create-react-app) that will be compatible with codesandbox.