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

[EuiEmptyPrompt] Fix styles to work correctly with custom larger breakpoints #7935

Merged
merged 4 commits into from
Aug 1, 2024

Conversation

cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Jul 31, 2024

Summary

@kpatticha reported an issue in APM where EuiEmptyPrompt stops displaying with desktop/larger styles. This is because APM uses a custom xxl: 1600 breakpoint, and EuiEmptyPrompt's styles previously used an euiBreakpoint('l', 'xl') which was not accounting for larger breakpoints.

Switching the component to euiMinBreakpoint resolves the issue for consumers with custom larger breakpoints.

QA

General checklist

  • Revert [REVERT ME] commit
  • Browser QA
    • Checked in mobile
      - [ ] Checked in Chrome, Safari, Edge, and Firefox
      - [ ] Checked for accessibility including keyboard-only and screenreader modes
      - [ ] Checked in both light and dark modes
  • Docs site QA - N/A
  • Code quality checklist - N/A, CSS only change
  • 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

@cee-chen cee-chen force-pushed the empty-prompt-breakpoint-fix branch from 4a45981 to 5e96fd4 Compare July 31, 2024 16:22
@cee-chen cee-chen marked this pull request as ready for review July 31, 2024 17:53
@cee-chen cee-chen requested a review from a team as a code owner July 31, 2024 17:53
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

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.

🚢 🐈‍⬛ Thanks for the quick fix! 🎉

@cee-chen cee-chen merged commit 9cbcc51 into elastic:main Aug 1, 2024
5 checks passed
@cee-chen cee-chen deleted the empty-prompt-breakpoint-fix branch August 1, 2024 16:35
@cee-chen
Copy link
Contributor Author

cee-chen commented Aug 1, 2024

GAH i forgot the revert me commit. going to push that to main

cee-chen added a commit that referenced this pull request Aug 1, 2024
This reverts commit 2099899.
@cee-chen
Copy link
Contributor Author

cee-chen commented Aug 1, 2024

4eaf404

@kpatticha
Copy link

Thanks for the super quick fix. Much appreciated 🥇

cee-chen added a commit to elastic/kibana that referenced this pull request Aug 5, 2024
`v95.5.0` ⏩ `v95.6.0`

_[Questions? Please see our Kibana upgrade
FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams)_

---

## [`v95.6.0`](https://github.com/elastic/eui/releases/v95.6.0)

- Updated `EuiIcon` with a new `crossInCircle` glyph
([#7924](elastic/eui#7924))

**Bug fixes**

- Fixed `EuiEmptyPrompt` to correctly collapse and expand responsively
when used with custom breakpoints larger than the default `xl`
breakpoint ([#7935](elastic/eui#7935))

**Accessibility**

- Improved the experience of `EuiModal` by ensuring nested `EuiPopover`
closes on `Escape` keypress instead of the modal
([#7939](elastic/eui#7939))

**CSS-in-JS conversions**

- Converted `EuiDatePicker` to Emotion
([#7937](elastic/eui#7937))
  - Removed `$euiDatePickerCalendarWidth`
  - Removed `$euiDatePickerPadding`
  - Removed `$euiDatePickerGap`
  - Removed `$euiDatePickerCalendarColumns`
  - Removed `$euiDatePickerButtonSize`
  - Removed `$euiDatePickerMinControlWidth`
  - Removed `$euiDatePickerMaxControlWidth`
  - Removed `@mixin datePickerCaret`
  - Removed `@mixin datePickerArrow`
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.

4 participants