Closed ywenc closed 2 years ago
@ywenc - do you happen to have css tree-shaking enabled in your production build step?
I can't reproduce this in dev mode (see above).. but I'm also unable to build and inspect the prod bundles due to getting this error:
> Build error occurred
[Error: ENOENT: no such file or directory, rename '.../resources-hub/.next/export/webcasts/EMEA-Security-Learning-Journey-H2.html' -> '.../resources-hub/.next/server/pages/webcasts/EMEA-Security-Learning-Journey-H2.html'] {
errno: -2,
code: 'ENOENT',
syscall: 'rename',
path: '.../resources-hub/.next/export/webcasts/EMEA-Security-Learning-Journey-H2.html',
dest: '.../resources-hub/.next/server/pages/webcasts/EMEA-Security-Learning-Journey-H2.html'
}
Am I missing something from Contentful?
@ywenc I pretty sure this issue is occurring due to our use of Purge CSS. I wonder if we need to add exceptions or do something like pipe in PrimerBrand's compiled CSS into /script/utils/purgecss.js
?
@ywenc I'm going to close because I believe we need to fix this in Resources Hub
Describe the bug
Expected: CTA arrow should animate on hover Current: No animation on hover
Example page: https://resources.github.com/devops/tools/compare/
the unhovered arrow starts with the classes
Primer_Brand__ExpandableArrow-module__ExpandableArrow___rkfek
, and on hover has the classesPrimer_Brand__ExpandableArrow-module__ExpandableArrow___rkfek Primer_Brand__ExpandableArrow-module__ExpandableArrow--expanded___gajDr
, but looks like there's no correspondingExpandableArrow--expanded
class in the css bundle.Reproduction steps
Expected behavior
Screenshots
Browsers
Chrome
OS
Mac