Skip to content
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

Merged
merged 5 commits into from
Jan 26, 2025

Conversation

zakybilfagih
Copy link
Collaborator

  • scrollbar-color
  • scrollbar-width
  • overflow-clip-margin
  • scrollbar-gutter

Resolve #538

Copy link

vercel bot commented Jan 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
styled-ppx ⬜️ Ignored (Inspect) Visit Preview Jan 25, 2025 1:18pm

@zakybilfagih zakybilfagih requested a review from davesnx January 24, 2025 04:40
Copy link
Owner

@davesnx davesnx left a 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)
Copy link
Owner

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?

Copy link
Collaborator Author

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

Copy link
Owner

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 //)

Copy link
Collaborator Author

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

Comment on lines +4327 to +4337
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woa, didn't know!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤓

packages/runtime/native/shared/Declarations.ml Outdated Show resolved Hide resolved
@davesnx davesnx merged commit a6e47ab into davesnx:main Jan 26, 2025
7 checks passed
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.

Support scrollbar-gutter
2 participants