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

Added second and millisecond units to duration token #173

Merged

Conversation

mitchdotdeveloper
Copy link

@mitchdotdeveloper mitchdotdeveloper commented Oct 7, 2022

Hey Mikael!

I am currently using figmagic at work, awesome project btw, as we build out our design system and thought this might be a worthwhile addition.

In this PR I added the units s and ms, seconds and milliseconds respectively, to the duration token. In our use we found we were having to append s to all of our duration tokens which is somewhat cumbersome.

Currently I have duration units defaulting to s, however I'm curious if you think it would be useful to have the duration units as an "opt-in" unit? Some cases like CSS will require s or ms however these could also be used in JS with setTimeout for example which does not have units attached and expects milliseconds.

@sonarcloud
Copy link

sonarcloud bot commented Oct 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mikaelvesavuori mikaelvesavuori self-assigned this Oct 10, 2022
@mikaelvesavuori mikaelvesavuori added the enhancement New feature or request label Oct 10, 2022
@mikaelvesavuori
Copy link
Owner

Looking good @mitchdotdeveloper! Great work and happy to merge this in.

I will add your name to the list of contributors too and push this to a new release ASAP.

@mikaelvesavuori mikaelvesavuori merged commit cbcba06 into mikaelvesavuori:main Oct 10, 2022
@mikaelvesavuori
Copy link
Owner

Please find your additions now released in 4.5.5 at https://github.com/mikaelvesavuori/figmagic/releases/tag/v4.5.5

Thanks for contributing!

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

Successfully merging this pull request may close these issues.

None yet

3 participants