Skip to content
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

Refactor Toggle to use Sass Modules #9024

Closed
tw15egan opened this issue Jun 24, 2021 · 0 comments · Fixed by #9026
Closed

Refactor Toggle to use Sass Modules #9024

tw15egan opened this issue Jun 24, 2021 · 0 comments · Fixed by #9026

Comments

@tw15egan
Copy link
Collaborator

tw15egan commented Jun 24, 2021

This issue is for updating the Toggle to Sass Modules in the @carbon/styles package. In this refactor, we will:

Copy over styles for for the component to packages/styles/scss/components/toggle/_toggle.scss
Any additional files will live in the folder packages/styles/scss/components/toggle/
Create an _index.scss at packages/styles/scss/components/toggle/_index.scss
Create a test file at packages/styles/scss/components/tests/toggle.js
Add storybook to packages/carbon-react
The _index.scss should:

@forward the mixin and any variables from _toggle.scss
Include the styles from _toggle.scss by calling the mixin
The toggle-test.js file should test the following:

The Public API of the toggle/_index.scss file
Any configuration options that are present for the file
The _toggle.scss will then need to be refactored to use the new import paths and conventions. You can find common recipes here: #8899

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant