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: enable using design tokens in html #6496

Merged

Conversation

EisenbergEffect
Copy link
Contributor

@EisenbergEffect EisenbergEffect commented Nov 3, 2022

Pull Request

📖 Description

This PR implements HTMLDirective on CSSDesignToken so that it works the same in HTML as it does in CSS.

🎫 Issues

👩‍💻 Reviewer Notes

Very simple implementation. Basically, one line of code plus registering via decorator.

📑 Test Plan

Existing tests pass. Planning to add a simple test to verify this in a follow-up PR, after the security PR is merged. I need test infrastructure from that PR to do it.

✅ Checklist

General

  • I have included a change request file using $ yarn change
  • 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.

⏭ Next Steps

Follow up PR to add an HTML Directive tests.

Copy link
Member

@chrisdholt chrisdholt left a comment

Choose a reason for hiding this comment

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

Nice!

@EisenbergEffect EisenbergEffect merged commit 9c594ef into master Nov 4, 2022
@EisenbergEffect EisenbergEffect deleted the users/eiesnbergeffect/use-design-token-in-html branch November 4, 2022 04:52
janechu pushed a commit that referenced this pull request Jun 10, 2024
* feat: enable using design tokens in html

* Change files

* chore: fix change files

* chore: remove unused import

Co-authored-by: EisenbergEffect <roeisenb@microsoft.com>
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.

feat: allow CSSDirective to render in html directive
3 participants