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

Is there any special meaning to using the rem function as in this sample code? #76

Open
eastack opened this issue Nov 4, 2023 · 2 comments

Comments

@eastack
Copy link

eastack commented Nov 4, 2023

After looking at the documentation, this function seems similar to the remainder operator (%) in JS, but here it only provides one parameter. So why don't we just write the corresponding value directly instead of using the rem function? Is there some other reason for it?

https://ui.mantine.dev/component/header-search/

image

@rtivital
Copy link
Member

rtivital commented Nov 5, 2023

@eastack
Copy link
Author

eastack commented Nov 5, 2023

Thank you so much for your help! I really appreciate you taking the time to help me with this. As a newbie, I don't have a good understanding of frontend engineering systems. But a question comes to my mind - if I want to use the original rem function in CSS, will it conflict with this feature (or can it be automatically distinguished by checking the number of arguments during preprocessing)?

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

No branches or pull requests

2 participants