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

[pickers][DatePicker] openPickerButton is overflowing on standard TextField variant #14714

Open
Friendlykid opened this issue Sep 24, 2024 · 2 comments
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer

Comments

@Friendlykid
Copy link

Friendlykid commented Sep 24, 2024

Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-rnrpxh?file=Demo.js

Steps:

  1. create Datepicker
  2. put standard variant into textField slotProps

Current behavior

Portion of open picker button icon is hidden with standard variant of textfield.

image

Expected behavior

The icon should be visible.

Context

I am trying to use standard variant of textfield in Datepicker

Your environment

npx @mui/envinfo
  System:
    OS: Windows 11 10.0.22631
  Binaries:
    Node: 20.16.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.3.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Edge: Chromium (127.0.2651.74)
  npmPackages:
    @emotion/react:  11.11.4
    @emotion/styled:  11.11.5
    @mui/base:  5.0.0-beta.40
    @mui/core-downloads-tracker:  5.15.18
    @mui/lab:  5.0.0-alpha.170
    @mui/material:  5.15.18
    @mui/material-nextjs:  5.16.6
    @mui/private-theming:  5.15.14
    @mui/styled-engine:  5.15.14
    @mui/system:  5.15.15
    @mui/types:  7.2.14
    @mui/utils:  5.15.14
    @mui/x-date-pickers:  6.19.12
    @mui/x-tree-view: 7.17.0 => 7.5.0
    @types/react:  18.2.74
    react: 18.3.1 => 18.3.1
    react-dom: 18.3.1 => 18.3.1

Search keywords: datepicker textfield standard

@Friendlykid Friendlykid added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 24, 2024
@github-actions github-actions bot added the component: pickers This is the name of the generic UI component, not the React module! label Sep 24, 2024
@Friendlykid
Copy link
Author

Also it should look the same as standard textfield
image

@noraleonte
Copy link
Contributor

Hey @Friendlykid 👋

Thanks for opening this issue 😄 I can confirm this problem, and it exists bot on the pickers using Material UI textfield, and the PickersTextField . There is also a weird vertical overlap when the textfield size is set to 'small' and that should probably be fixed too 🤔
image

Adding this to the discussions with the team to find a good solution 👍

@noraleonte noraleonte added design This is about UI or UX design, please involve a designer and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 30, 2024
@noraleonte noraleonte changed the title Datepiker: Overlayed open picker icon with standard variant of textfield [DatePicker] openPickerButton is overflowing on standard TextField variant Sep 30, 2024
@oliviertassinari oliviertassinari changed the title [DatePicker] openPickerButton is overflowing on standard TextField variant [pickers][DatePicker] openPickerButton is overflowing on standard TextField variant Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: pickers This is the name of the generic UI component, not the React module! design This is about UI or UX design, please involve a designer
Projects
None yet
Development

No branches or pull requests

2 participants