Skip to content

Commit

Permalink
improve playground output readability in light theme (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoLeBras authored Feb 28, 2025
1 parent aaad6ca commit ba49ef2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/Playground.res
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,7 @@ module InitialContent = {
}
`

let since_10_1 = `@@jsxConfig({ version: 4, mode: "automatic" })
module CounterMessage = {
let since_10_1 = `module CounterMessage = {
@react.component
let make = (~count, ~username=?) => {
let times = switch count {
Expand Down Expand Up @@ -1347,9 +1345,10 @@ module App = {
<input
type_="text"
value={username}
onChange={evt => {
evt->ReactEvent.Form.preventDefault
let username = (evt->ReactEvent.Form.target)["value"]
onChange={event => {
event->ReactEvent.Form.preventDefault
let eventTarget = event->ReactEvent.Form.target
let username = eventTarget["value"]
setUsername(_prev => username)
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/common/EvalIFrame.res
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let css = `body {
background-color: inherit;
color: CanvasText;
color-scheme: light dark;
color-scheme: dark;
}`

let reactVersion = "18.2.0"
Expand Down

0 comments on commit ba49ef2

Please sign in to comment.