Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Update index js #334

Merged
merged 11 commits into from
Apr 3, 2024
Merged

Update index js #334

merged 11 commits into from
Apr 3, 2024

Conversation

sdadn
Copy link
Contributor

@sdadn sdadn commented Apr 2, 2024

Summary

This PR continues the work in #332 by updating index.js to also import the css. Now, css no longer has to be explicitly imported when consuming graphs.

Before:

import Carbon from '@cerner/carbon-graphs';
import '@cerner/carbon-graphs/dist/css/carbon-graphs.css';

After

import Carbon from '@cerner/carbon-graphs';

Testing

This change was tested using:

  • WDIO
  • Jest
  • Visual testing (please attach a screenshot or recording)
  • Other (please describe below)
  • No tests are needed

This was tested by ensuring there are no css changes in screenshots. Removing the css import causes the css to break, which confirms that this change works.

Reviews

In addition to engineering reviews, this PR needs:

  • UX review
  • Accessibility review
  • Functional review

Additional Details


Thank you for contributing to Terra.
@cerner/terra

@sdadn sdadn self-assigned this Apr 2, 2024
Copy link
Contributor

github-actions bot commented Apr 2, 2024

Fails
🚫 Please include a CHANGELOG entry for each changed package this PR. Looks like a CHANGELOG entry is missing for:
  • carbon-graphs
  • terra-graphs-docs

Generated by 🚫 dangerJS against 0d3cd77

Comment on lines +3 to +4
// TODO: update to pull scss from the src/lib folder instead of dist
import '../dist/css/carbon-graphs.css';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This is a temporary fix to automatically import all necessary files. This will be replaces with scss files in the future.

@github-actions github-actions bot temporarily deployed to preview-pr-334 April 3, 2024 19:44 Destroyed
@sdadn sdadn merged commit 5439b25 into main Apr 3, 2024
9 of 10 checks passed
@sdadn sdadn deleted the update-index-js branch April 3, 2024 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants