Skip to content

Fix for Incompatible units when unitless value of 0#1

Open
groovenectar wants to merge 1 commit intomasterfrom
groovenectar-patch-1
Open

Fix for Incompatible units when unitless value of 0#1
groovenectar wants to merge 1 commit intomasterfrom
groovenectar-patch-1

Conversation

@groovenectar
Copy link
Owner

Only added px and % as cases to fix a particular app error, in case there are some edge case units that would break things. Should probably also include many others, if not all. If it should be all, then the last part of the new if statement where it checks the unit can be removed. Since I am not sure, I'm limiting the unit possibilities.

Hopefully this is the right place for this patch.

Getting this error:

/* Incompatible units: "px" and "".: line: 76 */

In this SCSS where the other value is computed to px:

$padding-value: max($padding - $outline-width, 0);

Making it "0px" in the SCSS fixes the error, but I don't think it should be throwing an error at all...

Only added px and % as cases to fix a particular app error, in case there are some edge case units that would break things. Should probably also include many others, if not all. If it should be all, then the last part of the new `if` statement where it checks the unit can be removed. Since I am not sure, I'm limiting the unit possibilities.

Hopefully this is the right place for this patch.

Getting this error:

    /* Incompatible units: "px" and "".: line: 76 */

In this SCSS where the other value is computed to px:

    $padding-value: max($padding - $outline-width, 0);

Making it "0px" in the SCSS fixes the error, but I don't think it should be throwing an error at all...
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

Successfully merging this pull request may close these issues.

1 participant