-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug]: Calendar icon in Datepicker input got displaced when providing the prop inline to true #16446
Comments
Hey, there was a similar issue opened recently, #16216 There I mentioned:
I think we can leave this issue open for making these updates to documentation |
@carbon-design-system/design are there any outstanding specs for this? should there be? If we're interested in fully supporting this feature we could take a look at how to accomplish this. |
@tay1orjones I agree with your response above. If we are not fully supporting this because it's a passthrough prop to flatpicker, the prop should be removed from the control pane and only listed in the prop tables. Since this use case of using an inline date picker input (instead of our default input with a background) is not a frequent need or ask from our community within and outside of IBM, I don't feel we need to fully support this feature and it can continue to be used as a passthrough prop to flatpicker. |
Hi, I have tried to resolved the above issue. I have updated the CSS which is causing calendar icon alignment issue. I have added the story for inline true props. PS: My previous PR had some issue due to unwanted merges so closed it. |
Package
@carbon/react
Browser
Chrome
Package version
1.57.0
React version
18
Description
When providing prop
inline= true
, the calendar icon which appears over date picker input got displaced over the calendar. This is because the svg(.cds--date-picker__icon) is in absolute position.Reproduction/example
https://stackblitz.com/edit/github-y7mu2g?file=src%2FApp.jsx
Steps to reproduce
Suggested Severity
None
Application/PAL
WxO
Code of Conduct
The text was updated successfully, but these errors were encountered: