Skip to content

Commit

Permalink
🐛 (date) Fix date picker UI when editor is in dark mode
Browse files Browse the repository at this point in the history
Closes #368
  • Loading branch information
baptisteArno committed Mar 10, 2023
1 parent 5435452 commit e680d13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/js/src/assets/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,9 @@ textarea {
color: var(--typebot-input-color);
background-color: var(--typebot-input-bg-color);
}

.typebot-date-input {
color-scheme: light;
color: var(--typebot-input-color);
background-color: var(--typebot-input-bg-color);
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const DateForm = (props: Props) => {
</p>
)}
<input
class="focus:outline-none flex-1 w-full text-input"
class="focus:outline-none flex-1 w-full text-input typebot-date-input"
style={{
'min-height': '32px',
'min-width': '100px',
Expand All @@ -68,7 +68,7 @@ export const DateForm = (props: Props) => {
</p>
)}
<input
class="focus:outline-none flex-1 w-full text-input ml-2"
class="focus:outline-none flex-1 w-full text-input ml-2 typebot-date-input"
style={{
'min-height': '32px',
'min-width': '100px',
Expand Down

0 comments on commit e680d13

Please sign in to comment.