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

fix(inline-styles): remove inject and Stylesheet.parse inline references #2653

Merged
merged 1 commit into from
Aug 13, 2019

Conversation

priley86
Copy link
Member

@priley86 priley86 commented Aug 6, 2019

What:
Closes #2606

cc: @redallen

Additional issues:

@priley86 priley86 requested review from dgutride and redallen August 6, 2019 20:06
@patternfly-build
Copy link
Contributor

PatternFly-React preview: https://patternfly-react-pr-2653.surge.sh

cwd: srcDir
});

files.forEach(file => {
Copy link
Member

Choose a reason for hiding this comment

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

I'm concerned about adding any support for inline/required css directly to react-core. Maybe we can consider the use of CSS directly an antipattern and make sure we don't make it easy for people to do. For now, can we put this CSS directly into react-styles instead so we don't add the ability for direct inclusion through react-core?

Copy link
Member Author

Choose a reason for hiding this comment

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

ok, will try changing this to something more like:

import '@patternfly/react-styles/css/components/Tooltip/popover-base-styles.css';

as a next step...

Copy link
Member Author

Choose a reason for hiding this comment

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

updated! PTAL @dgutride

Copy link
Member

@dgutride dgutride left a comment

Choose a reason for hiding this comment

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

Love it - nice job!

Copy link
Contributor

@tlabaj tlabaj left a comment

Choose a reason for hiding this comment

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

LGTM

@tlabaj tlabaj merged commit ee2ca95 into patternfly:master Aug 13, 2019
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-charts@4.7.7
  • @patternfly/react-core@3.86.2
  • @patternfly/react-docs@4.10.4
  • @patternfly/react-inline-edit-extension@2.9.77
  • demo-app-ts@2.19.2
  • @patternfly/react-styled-system@3.6.21
  • @patternfly/react-styles@3.5.11
  • @patternfly/react-table@2.16.16
  • @patternfly/react-topology@2.7.25
  • @patternfly/react-virtualized-extension@1.1.111

Thanks for your contribution! 🎉

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

Successfully merging this pull request may close these issues.

Avoid inline-styling to meet tighter content-security-policy
5 participants