We need to restructure yoast-components
Decisions
- API will be
import { Button } from "@yoast/components"
- API for complex composites will be `import { SnippetPreview } from "@yoast/preview-components" / "@yoast/metadata-previews"
- No css folder
- No redux folder
- We'll have a
packages/components folder. (Moving to the mono-repo structure)
Todos
Do the restructure
- Move all current components to the new folder structure.
Remaining todos
- Consolidate all the different buttons into one stack of buttons.
- (Maybe?) Refactor
determineFacebookImageProperties.js into separate files.
We want to inspect the following components:
- Input
- Label
- Progressbar
- Section
- StyledSection
- Textarea
- Textfield
- Icon
We need to change the following things:
DismissButton should inherit from Button.
We need to restructure yoast-components
Decisions
import { Button } from "@yoast/components"packages/componentsfolder. (Moving to the mono-repo structure)Todos
Do the restructure
Remaining todos
determineFacebookImageProperties.jsinto separate files.We want to inspect the following components:
We need to change the following things:
DismissButtonshould inherit fromButton.