Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

fix(ui components): remove a stylesheet import that's now redundant #1164

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Feb 1, 2021

☁️   CI App

🧰 What's being changed?

Now that we've migrated our full component library to the ReadMe repo, we need to remove a stylesheet import from the API Explorer repo since it's being applied twice. See https://github.com/readmeio/readme/pull/3552 for more info!

I verified that this doesn't break any of the styling in the demo app because of bundle-hub2.css.

This also does a bit of recipes-specific housekeeping:

  • Updates the copy in the demo app so it's now "recipes" d90dc65
  • Fixes some of the logic so the "Enable recipes" toggle is now working again in the demo app. Feel free to revert this if the toggle was intentionally disabled! 0b3fbeb

🧬 Testing

Verify that the "Enable recipes" toggle in the demo app is working, and that none of the styling appears to be broken.

@kanadgupta kanadgupta requested a review from erunion February 1, 2021 23:33
@erunion erunion temporarily deployed to readme-api-e-fix-remove-qbdqgq February 1, 2021 23:33 Inactive
@@ -10,7 +10,6 @@ const Oas = require('oas/tooling');
const { getPath, matchesMimeType } = require('oas/tooling/utils');

const { TutorialTile } = require('@readme/ui/.bundles/es/ui/compositions');
require('@readme/ui/.bundles/umd/main.css');
Copy link
Contributor

@rafegoldberg rafegoldberg Feb 1, 2021

Choose a reason for hiding this comment

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

This is definitely in keeping with the other CSS optimizations we've been making! But it'll be difficult to test until we roll an integration, and I know we've had some issue with cross-repo style application before.

@erunion
Copy link
Member

erunion commented Feb 2, 2021

Looks good on the CI app: https://readme-api-e-fix-remove-qbdqgq.herokuapp.com/

@erunion erunion merged commit 5578d40 into next Feb 2, 2021
@erunion erunion deleted the fix/remove-redundant-css branch February 2, 2021 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants