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

Pass border styling as props to allotment #716

Open
justindoody opened this issue Oct 31, 2023 · 1 comment
Open

Pass border styling as props to allotment #716

justindoody opened this issue Oct 31, 2023 · 1 comment
Assignees

Comments

@justindoody
Copy link

I have different border colors dependent on light/dark theme and it was more of a pain to sort out than expected. Rather than the --separator-border css var it would be nice to pass props to Allotment for configuring that take precedence.

Perhaps something like:

<Allotment seperatorStyles="bg-gray-300 dark:bg-slate-700">

My eventual working solution in case anyone needs it. (wish i wasn't using !important)

.split-view-view::before {
    @apply bg-gray-300 !important;
    @apply dark:bg-slate-700 !important;
}
@johnwalley johnwalley self-assigned this Dec 28, 2023
@riazus
Copy link

riazus commented May 15, 2024

Hello, are there updates about this issue?

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

No branches or pull requests

3 participants