-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Scrollbar Module 1 and Partial Overflow Module 3 support #539
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job man
[%e render_color(~loc, thumbColor)], | ||
[%e render_color(~loc, trackColor)], | ||
))] | ||
| `Color(_) => raise(Unsupported_feature) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one color looks like isn't supported (can we change the spec definition to be instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this path will not be reached i believe, since we are using the curly syntax <color>{2}
the type will always be a list
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment (it's easy to discover in the future but faster with a small //)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh you know what, i think we can just use static instead
module Margin = struct | ||
type t = | ||
[ Length.t | ||
| Var.t | ||
] | ||
|
||
let toString x = | ||
match x with | ||
| #Length.t as l -> Length.toString l | ||
| #Var.t as va -> Var.toString va | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woa, didn't know!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤓
Resolve #538