Skip to content

[EuiDatePicker] Add compressed prop #7195

Closed

Description

@MichaelMarcialis

Is your feature request related to a problem? Please describe.
Currently, EuiDatePicker is one of the few (if not the only) components that doesn't offer a compressed size option. This presents consistency issues when attempting to add a simple date picker to a form that utilizes compressed form elements. Strangely enough, this does not apply to the the more complex EuiSuperDatePicker component, as it does offer a compressed size.

Describe the solution you'd like
Add a compressed size prop for the EuiDatePicker component.

Describe alternatives you've considered
We could likely achieve the compressed look with some CSS overrides, but given that all other EUI form components have the compressed option baked in as a prop, it would be good if this component did the same for consistency.

Desired timeline
This isn't a super urgent request, given that it only creates a minor visual inconsistency at worst. But given the simplicity of the request, hopefully it's something that can be completed in a reasonable timeframe and not booted to the end of the backlog.

Additional context
CCing @drewdaemon, as this was brought up during our review here: elastic/kibana#163346 (review)

Activity

  1. self-assigned this
    on Sep 21, 2023
  2. MichaelMarcialis commented on Sep 22, 2023

    @MichaelMarcialis
    ContributorAuthor

    Wow, that was fast! Thanks, @cee-chen!

  3. cee-chen commented on Sep 22, 2023

    @cee-chen
    Contributor

    No problem! Turns out it was super easy, barely an inconvenience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions