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

[EuiDatePicker] Fix clear button appearing when input is disabled #8020

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Sep 12, 2024

Summary

I noticed this minor bug when fixing form control layouts in Kibana (elastic/kibana#192779).

Before After

All other clearable inputs (e.g. EuiFieldSearch, EuiFilePicker, EuiColorPicker) hide the clear button when disabled - this component is following suit.

QA

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in Chrome, Safari, Edge, and Firefox~
      - [ ] Checked in mobile
      - [ ] Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA - N/A
  • Code quality checklist
  • Release checklist
    • A changelog entry exists and is marked appropriately.
      - [ ] If applicable, added the breaking change issue label (and filled out the breaking change checklist)
  • Designer checklist - N/A

- all other clearable inputs hide the button when disabled, this component should follow suit
@cee-chen cee-chen marked this pull request as ready for review September 12, 2024 22:06
@cee-chen cee-chen requested a review from a team as a code owner September 12, 2024 22:06
@cee-chen cee-chen enabled auto-merge (squash) September 12, 2024 22:07
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

Copy link
Contributor

@mgadewoll mgadewoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🐈‍⬛ Looks and works as expected 👍

@cee-chen cee-chen merged commit 8bcab2a into elastic:main Sep 13, 2024
6 checks passed
@cee-chen cee-chen deleted the datepicker-clear-disable-fix branch September 13, 2024 07:07
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

Successfully merging this pull request may close these issues.

3 participants