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

Align DatePicker to left (default) or right (not supported) of DateInput box #99

Open
jacksonthall22 opened this issue May 31, 2024 · 4 comments

Comments

@jacksonthall22
Copy link

If the DateInput box is on the far right of the screen, it would be nice to add a class that allows aligning to the left/right of the input, like here: https://daisyui.com/components/dropdown/#dropdown-bottom--aligns-to-end

@probablykasper
Copy link
Owner

Could you show a UI/use case where that would be needed?

@jacksonthall22
Copy link
Author

image

@probablykasper
Copy link
Owner

I wonder if a popover could work

@jacksonthall22
Copy link
Author

Here's my current workaround fwiw:

  :global(.untilDate .date-time-field > div) {
    right: 0px !important;
  }

It would be really nice to get fine grain control of other styles for the element as well. Currently it seems like you have to drill down this way to really customize it.

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

2 participants