astrada/ppx_bs_css

z-index in TypedGlamor expects to be wrapped with int()

jchavarri opened this issue · 2 comments

This fails to compile:

let t =
  TypedGlamor.(
    [%css
      {typed|
        {
          z-index: 7;
        }
      |typed}
    ]);

However, this workaround works :)

let z = TypedGlamor.int(7);
let t =
  TypedGlamor.(
    [%css
      {typed|
        {
          z-index: z;
        }
      |typed}
    ]);

Should be fixed in issue9 branch.

It works! thanks :)