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: margin and padding logical props #1685

Merged
merged 4 commits into from Apr 18, 2024

Conversation

madhurisandbhor
Copy link
Collaborator

What does it do?

Mapping margin and padding internally to equivalent logical props.

Why is it needed?

To support direction and writing modes in DS

How to test it?

You can check logical properties story added for demo purpose(to be improved/updated in RTL feat) where on inspect you can see all margin and padding properties are converted to equivalent logical properties.

Copy link

changeset-bot bot commented Apr 15, 2024

⚠️ No Changeset found

Latest commit: b3ebefc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Apr 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 11:02am
design-system-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 11:02am

@madhurisandbhor madhurisandbhor changed the title Feature: margin and padding logical props Feat: margin and padding logical props Apr 15, 2024
Copy link

github-actions bot commented Apr 15, 2024

Size Change: +63 B (0%)

Total Size: 504 kB

Filename Size Change
packages/strapi-design-system/dist/index.js 195 kB +28 B (0%)
packages/strapi-design-system/dist/index.mjs 194 kB +35 B (0%)
ℹ️ View Unchanged
Filename Size
packages/primitives/dist/index.js 16.6 kB
packages/primitives/dist/index.mjs 16.1 kB
packages/strapi-icons/dist/index.js 41.2 kB
packages/strapi-icons/dist/index.mjs 41 kB

compressed-size-action

Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

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

I think lets take this opportunity to make better typography docs since we should be able to support RTL text.

What do you think of Nasa's typography folder? https://nasa-jpl.github.io/explorer-1/?path=/docs/foundation-typography--fonts Interested to hear if you've found any that you really like :)

@madhurisandbhor
Copy link
Collaborator Author

@joshuaellis I did check few design systems for typography folder and I agree we should definitely improve ours. Adobe spectrum also looks good, but Nasa's more simpler like we have with storybooks.
But why don't we do it as a separate PR or with RTL?

@madhurisandbhor
Copy link
Collaborator Author

https://canvas.workday.com/tokens/type is interesting too

@madhurisandbhor madhurisandbhor merged commit 49fe7e6 into releases/2.0.0 Apr 18, 2024
10 checks passed
@madhurisandbhor madhurisandbhor deleted the feat/logical-css-props branch April 18, 2024 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: feature This PR adds a new feature source: design-system relates to design-system package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Checkbox missing padding in RTL [feat]: RTL support
2 participants