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: adds direction property to design system #3535

Merged
merged 6 commits into from
Jul 21, 2020

Conversation

nicholasrice
Copy link
Contributor

@nicholasrice nicholasrice commented Jul 21, 2020

Description

This change adds a direction property to the design systems for FAST and MSFT to track the primary document direction. It also adds two behaviors to resolve CSS custom properties to direction-based values based on the design-systems direction. Ideally this wouldn't be necessary, but there are still significant gaps in browser support for https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.

Related to #3246. This addresses most of the issues in that thread but does not add the behavior to conditionally apply ComposableStyles based on direction. That piece is not blocking so taking as a follow-up.

Motivation & context

Issue type checklist

  • 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.

Is this a breaking change?

  • This change causes current functionality to break.

Adding or modifying component(s) in @microsoft/fast-components checklist

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.

@nicholasrice nicholasrice force-pushed the users/nirice/add-direction-to-design-system branch from 1e28e8f to 84250d2 Compare July 21, 2020 17:49
@EisenbergEffect
Copy link
Contributor

EisenbergEffect commented Jul 21, 2020

@nicholasrice Do you happen to have a practical example of how this would be used in a component? That might be good to add to the PR description.

@nicholasrice
Copy link
Contributor Author

@EisenbergEffect I'll add examples to the API docs

@nicholasrice nicholasrice merged commit 492f5e7 into master Jul 21, 2020
@nicholasrice nicholasrice deleted the users/nirice/add-direction-to-design-system branch July 21, 2020 23:49
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.

5 participants