Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Remove mixin retina-sprite's $dimensions parameter #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nleduc
Copy link

@nleduc nleduc commented Jun 11, 2015

At commit 21c5888 a new parameter, $dimensions, was introduced in the central mixin: retina-sprite. Adding $dimensions before the $hover and $active parameters breaks all existing mixin calls which followed the old mixin signature. That change also broke cross-compatibility with @AdamBrodzinski's version, as all clients would need to change all their usages of the retina-sprite mixin if they had already specified arguments for $hover and $active. Moreover, the added parameter was undocumented and caused the demo to fail. If we want to introduce the new parameter, it should be added to the documentation, it's default value should be true, and it should be added as the last parameter to maintain backward compatibility.

At commit 21c5888 a new parameter, $dimensions, was introduced in the central mixin: retina-sprite. Adding $dimensions before the $hover and $active parameters breaks all existing mixin calls which followed the old mixin signature. That change also broke cross-compatibility with @AdamBrodzinski's version, as all clients would need to change all their usages of the retina-sprite mixin if they had already specified arguments for $hover and $active. Moreover, the added parameter was undocumented and caused the demo to fail. If we want to introduce the new parameter, it should be added to the documentation, it's default value should be true, and it should be added as the last parameter to maintain backward compatibility.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant