-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
rem function removal without mention or recommended replacement #986
Comments
@attilagyorffy Hello! Both the
|
Hi @tysongach. I'm sorry I totally missed the entries on the bottom. (Small note, I have been searching for rem function as opposed to a mixin, which rem actually used to be). Initially I was in favour of the Thank you. |
As has been raised in the referenced discussion, the removal completely ignores the reality that many front end developers translate designs from programs that are based on pixel values. While yes, in an ideal world, we'd all code directly in rem, I have much more pressing things to do than learn the 16 times table in my head or sit pumping values into a calculator all day. All this has resulted in is me having to manually add the rem() function back in to my own code. I wouldn't be surprised if I'm not the only one. |
I know this is an older issue, but shouldn't there be an error when you build stuff with the removed rem function? When you update bourbon and build the project it just treats rem as css and includes it like that. Which ofc isn't going to work. I have some older projects with a build pipeline and greenkeeper and the pipeline succeeds even though it should fail since the sass build would be broken with a newer bourbon. If someone were to skip the release where the deprecation notice is included they would probably have to spend a lot of time to figure out which functions got removed in order to update instead of the sass compiler just erroring out and telling you which functions aren't supported anymore. |
The
rem
function was removed from bourbon without any mention in the CHANGELOG. I wonder what is the reason behind it (unless it was an accident I'm sure there is a valid reason) and so I'd like to learn about it.Expected behaviour
The
rem
function to exist or have an alternativeActual behavior
The function was removed in 9445e34 without any recommendation of a replacement or reasons in the CHANGELOG
Bourbon version
5.0.0-beta.7
Environment info
Using the npm package vi github at https://github.com/thoughtbot/bourbon#1fda560885797aa224932e278e3a077092451f85
Screenshots (if relevant)
The text was updated successfully, but these errors were encountered: