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

DatePicker not applying inputWrapper #2998

Open
shahin7333 opened this issue May 14, 2024 · 4 comments · May be fixed by #3146
Open

DatePicker not applying inputWrapper #2998

shahin7333 opened this issue May 14, 2024 · 4 comments · May be fixed by #3146
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@shahin7333
Copy link

I want to apply a new border with color, but I can't. what is the issue?

Copy link

linear bot commented May 14, 2024

ENG-834 date picker

@wingkwong
Copy link
Member

seems inputWrapper from date input is not accessible from date picker.

@wingkwong wingkwong changed the title date picker DatePicker not applying inputWrapper May 21, 2024
@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels May 21, 2024
@ryo-manba
Copy link
Member

Thanks for the issue! You can apply styles to the input using slots as shown below.

  <DatePicker classNames={{base: "border-3 border-white"}} />

datepicker-with-classnames

@ryo-manba ryo-manba self-assigned this May 31, 2024
@ryo-manba
Copy link
Member

ryo-manba commented May 31, 2024

Ah, after looking into it a bit more, it seems this method could cause various issues. I will work on allowing classNames to be passed to the input instead.
related: #2895

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants