Skip to content

Datepicker caption select icons sometimes overlap text #6294

@adidahiya

Description

@adidahiya

Environment

  • Package version(s): @blueprintjs/datetime 5.0.6, @blueprintjs/datetime2 1.0.6
  • Operating System: macOS
  • Browser name and version: Chrome 114

Steps to reproduce

Render a DatePicker, DateRangePicker, DateInput, or DateRangeInput in a way that makes the .DayPicker element take up its minimum width (currently defined as 210px)

Actual behavior

state.monthRightOffset computation inside <DatePickerCaption> is slightly off, which makes the dropdown icon overlap the month and year text by 7px

image

Expected behavior

No overlap

image

Possible solution

Maybe we just need to increase the min-width?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions