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

Improving the Playground #970

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

LeoLeBras
Copy link
Contributor

@LeoLeBras LeoLeBras commented Feb 11, 2025

No description provided.

Copy link

vercel bot commented Feb 11, 2025

@LeoLeBras is attempting to deploy a commit to the ReScript Association Team on Vercel.

A member of the Team first needs to authorize it.

@LeoLeBras LeoLeBras marked this pull request as ready for review February 11, 2025 21:05
@tsnobip
Copy link
Contributor

tsnobip commented Feb 12, 2025

@LeoLeBras, thanks for your PR! I'm a bit surprised though, what browser and extensions do you use? I tested it on Firefox, Chrome and Safari on both desktop and mobile and always get white text on midnight blue which looks pretty readable to me:
Capture d’écran 2025-02-12 à 09 09 58

Even though I really like tailwindcss (and use it in most of my projects), I don't know if we should introduce something not standard here, so we could maybe use some CSS-in-JS if we really want to introduce some custom styles. I'll try to get some feedback about it.

@tsnobip
Copy link
Contributor

tsnobip commented Feb 12, 2025

ok, I found it, it does get displayed in black on machines set to use the light theme, nice catch @LeoLeBras!

Copy link
Contributor

@tsnobip tsnobip left a comment

Choose a reason for hiding this comment

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

thanks for the catch, but the fix is actually simpler, I would rather avoid adding more technologies to this already complex beast.

If you want, you can keep your suggestion in the default code and add the suggestion I wrote.

@joshderochervlk-simplisafe
Copy link

joshderochervlk-simplisafe commented Feb 20, 2025

While you're in here, I also get an issue where the dropdown to select the version of Rescript shows up as light gray text on a white background.

image

@fhammerschmidt
Copy link
Member

@LeoLeBras would you update the PR with the changes that @tsnobip suggested?

@LeoLeBras
Copy link
Contributor Author

@LeoLeBras would you update the PR with the changes that @tsnobip suggested?

I'll do it next week!

@LeoLeBras
Copy link
Contributor Author

While you're in here, I also get an issue where the dropdown to select the version of Rescript shows up as light gray text on a white background.

image

Which OS and browser are you using? @joshderochervlk-simplisafe

let since_10_1 = `@@jsxConfig({ version: 4, mode: "automatic" })
module CounterMessage = {
let since_10_1 = `module CounterMessage = {
Copy link
Contributor Author

@LeoLeBras LeoLeBras Feb 28, 2025

Choose a reason for hiding this comment

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

This is not straightforward for a beginner to understand @@jsxConfig({ version: 4, mode: "automatic" }). I don’t think it introduces any regressions, but could you confirm that @tsnobip ?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, remove it.

@@ -1,7 +1,7 @@
let css = `body {
background-color: inherit;
color: CanvasText;
color-scheme: light dark;
color-scheme: dark;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

works like a charm

Screen.Recording.2025-02-28.at.09.40.18.mov

Copy link
Member

Choose a reason for hiding this comment

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

Nice.

@LeoLeBras LeoLeBras requested a review from tsnobip February 28, 2025 08:45
Copy link
Contributor

@tsnobip tsnobip left a comment

Choose a reason for hiding this comment

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

looks great, thanks a lot @LeoLeBras

@tsnobip
Copy link
Contributor

tsnobip commented Feb 28, 2025

While you're in here, I also get an issue where the dropdown to select the version of Rescript shows up as light gray text on a white background.

image

I couldn't repro it either @joshderochervlk-simplisafe, we could fix that in another PR once we have more info.

@tsnobip tsnobip merged commit ba49ef2 into rescript-lang:master Feb 28, 2025
1 of 2 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.

4 participants