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

feat(fast-element): enable CSSStyleSheet and string to be used as styles #3345

Merged
merged 6 commits into from
Jun 22, 2020

Conversation

EisenbergEffect
Copy link
Contributor

@EisenbergEffect EisenbergEffect commented Jun 19, 2020

Description

Based on feedback from MS Graph, who is using sass, this PR makes it easier to pass a string directly to the element definition styles. Additionally, support for passing a CSSStyleSheet instance directly to the definition, as well as composing CSSStyleSheet instances with css has been enabled. This makes FAST forward compatible with the upcoming CSS Modules platform feature which allows importing from a ".css" file where the import object is transformed by the platform into an instance of CSSStyleSheet.

  • Chore: A change that does not impact distributed packages.
  • Bug fix: A change that fixes an issue, link to the issue above.
  • New feature: A change that adds functionality.

This change loosens the types and is non-breaking.

Process & policy checklist

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Sorry, something went wrong.

@EisenbergEffect EisenbergEffect mentioned this pull request Jun 19, 2020
35 tasks
Copy link
Contributor

@nicholasrice nicholasrice left a comment

Choose a reason for hiding this comment

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

Awesome!

@EisenbergEffect EisenbergEffect merged commit 70e2f7f into master Jun 22, 2020
@EisenbergEffect EisenbergEffect deleted the users/eisenbergeffect/more-flexible-styles branch June 22, 2020 19:58
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.

None yet

4 participants