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

[BUG] DatePicker 组件(范围选择)输入框内文字没有垂直居中 #2556

Open
1 task done
WebGhan opened this issue Nov 2, 2024 · 0 comments
Open
1 task done

Comments

@WebGhan
Copy link

WebGhan commented Nov 2, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

DatePicker

Semi Version

2.68.3

Current Behavior

DatePicker 组件处于范围选择时,肉眼可见输入框内的文字在垂直方向上没有居中

001

检查元素,发现 .semi-input-wrapper 的高度是 24px

003

.semi-input 的高度是 22px

002

两个元素是顶部对齐的,所以导致 input 向上偏移了 2px,没有居中对齐。

Expected Behavior

正确的居中

Steps To Reproduce

  1. 访问官方文档:https://semi.design/zh-CN/input/datepicker
  2. 查看“日期范围选择”

ReproducibleCode

访问官方文档:https://semi.design/zh-CN/input/datepicker

Environment

- OS: macOS
- browser: Chrome or Safari

Anything else?

No response

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

1 participant