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

fix: background context should affect only dark background in Textarea #1107

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

vonagam
Copy link
Contributor

@vonagam vonagam commented Oct 4, 2023

There are 7 places where getContext('background') is used - Checkbox, Input, InputAddon, Radio, Textarea, Toggle and ToolbarButton. In all of them except Textarea this context only slightly changes color of some aspect in dark mode. But in Textarea it also changes bg-gray-50 to bg-white.

Removed that switch to be consistent with other components. (And in ToolbarButton just moved the same class from a conditional statement.)

@stackblitz
Copy link

stackblitz bot commented Oct 4, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Comments Updated (UTC)
flowbite-svelte ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 6:35am
flowbite-svelte-update ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 4, 2023 6:35am

@shinokada
Copy link
Collaborator

Can you show me screenshots of what are different in the Textarea from other components?

@vonagam
Copy link
Contributor Author

vonagam commented Oct 4, 2023

I thought my description was clear - if the "background" context is set (which Frame does) it changes its background color from slightly gray to white in non-dark mode. Other inputs do not do that. (Provided screenshot bellow.)

@vonagam
Copy link
Contributor Author

vonagam commented Oct 4, 2023

Here is a screenshot of <Input /> and <Textarea /> inside Modal:
screenshot

@shinokada shinokada merged commit 38e7c38 into themesberg:main Feb 25, 2024
4 checks passed
@vonagam vonagam deleted the fix-textarea-background-bg branch February 25, 2024 18:20
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.

None yet

2 participants