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

1.65 Default rem function overlap #2066

Closed
QuentiumYT opened this issue Aug 17, 2023 · 2 comments
Closed

1.65 Default rem function overlap #2066

QuentiumYT opened this issue Aug 17, 2023 · 2 comments

Comments

@QuentiumYT
Copy link

Hello, since the change in 1.65 to scope several math functions as global, it cause an issue with my custom rem function.

@use 'sass:math';

@function rem($value, $base: 16) {
	@return math.div($value, $base) * 1rem;
}

We are using this custom rem function to convert every pixel value to its equivalent in rem. But now, the global SASS function takes precedence over ours. Is it possible to change this behaviour? Also why it has been changed like that now?
Thanks for the reply :)

@Goodwine
Copy link
Member

dup of #2060

@nex3
Copy link
Contributor

nex3 commented Aug 17, 2023

I've reopened sass/sass#3504 to track this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants