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

[EuiBreadcrumb] Fix styling on application types with popovers + perf improvements #7580

Merged
merged 5 commits into from Mar 18, 2024

Conversation

cee-chen
Copy link
Member

@cee-chen cee-chen commented Mar 13, 2024

Summary

closes #7577

Before After

The underlying fix is to separate out the breadcrumb CSS from the truncation CSS and passing them to separate DOM elements for breadcrumbs with popovers. The final diff is a bit hard to follow because I ended up just pulling out breadcrumbs with popovers to a separate subcomponent, apologies for that 😬

QA

General checklist

  • Browser QA
    • Checked in both light and dark modes
    • Checked in mobile
    • Checked in Chrome, Safari, Edge, and Firefox
    • Checked for accessibility including keyboard-only and screenreader modes
  • Docs site QA - N/A
  • Code quality checklist - N/A, primarily a visual/CSS bug - snapshots should be mostly the same as before
  • Release checklist
    • A changelog entry exists and is marked appropriately.
  • Designer checklist - N/A

@cee-chen cee-chen changed the title [EuiBreadcrumb] Fix styling on application types with popovers [EuiBreadcrumb] Fix styling on application types with popovers + perf improvements Mar 13, 2024
- separate `truncation` styles from breadcrumb type styles (truncation styles go on the inner text, breadcrumb styles go on the outer element)

- create new separate `EuiBreadcrumbPopover` subcomponent for easier dev readability and one-off behavior
@cee-chen cee-chen force-pushed the breadcrumb/application-style-fix branch from cabbf97 to 4df60c5 Compare March 14, 2024 01:42
@cee-chen cee-chen marked this pull request as ready for review March 14, 2024 01:42
@cee-chen cee-chen requested a review from a team as a code owner March 14, 2024 01:42
changelogs/upcoming/7580.md Outdated Show resolved Hide resolved
…types into a separate file

- the breadcrumb types weren't super married to the actual component usage in any case

+ move unit tests for content to its own file, add new basic it renders test for other components
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@cee-chen
Copy link
Member Author

Merging to get this fix in for today's release

@cee-chen cee-chen merged commit 0f3609a into elastic:main Mar 18, 2024
7 checks passed
@cee-chen cee-chen deleted the breadcrumb/application-style-fix branch March 18, 2024 16:04
cee-chen added a commit to elastic/kibana that referenced this pull request Mar 22, 2024
`v93.3.0`⏩ `v93.4.0`

---

## [`v93.4.0`](https://github.com/elastic/eui/releases/v93.4.0)

- Added the following properties to `EuiButtonGroup`'s `options`
configs: `toolTipContent`, `toolTipProps`, and `title`. These new
properties allow wrapping buttons in `EuiToolTips`, and additionally
customizing or disabling the native browser `title` tooltip.
([#7461](elastic/eui#7461))
- Enhanced `EuiResizeObserver` and `useResizeObserver`'s performance to
not trigger page reflows on resize event
([#7575](elastic/eui#7575))
- Updated `EuiSuperUpdateButton` to support custom button text via an
optional `children` prop
([#7576](elastic/eui#7576))

**Bug fixes**

- Fixed `EuiFlyout` to not repeatedly remove/add a body class on resize
([#7462](elastic/eui#7462))
- Fixed `EuiToast` title text to wrap instead of overflowing out of the
container ([#7568](elastic/eui#7568))
- Fixed a visual bug with `EuiHeaderBreadcrumbs` with popovers
([#7580](elastic/eui#7580))

**Deprecations**

- Deprecated `euiPalettePositive` and `euiPaletteNegative` in favour of
a more culturally inclusive `euiPaletteGreen` and `euiPaletteRed`
([#7570](elastic/eui#7570))
- Deprecated all charts theme exports in favor of `@elastic/charts`
exports: ([#7572](elastic/eui#7572))
- Deprecated `EUI_CHARTS_THEME_<DARK|LIGHT>` in favor of
`<DARK|LIGHT>_THEME` from `@elastic/charts`.
([#7572](elastic/eui#7572))
- Deprecated `EUI_SPARKLINE_THEME_PARTIAL` in favor of
`useSparklineOverrides` theme from the kibana `charts` plugin `theme`
service.

**Accessibility**

- Updated `EuiModal` to set an `aria-modal` attribute and a default
`dialog` role ([#7564](elastic/eui#7564))
- Updated `EuiConfirmModal` to set a default `alertdialog` role
([#7564](elastic/eui#7564))
- Fixed `EuiModal` and `EuiConfirmModal` to properly trap
Safari+VoiceOver's virtual cursor
([#7564](elastic/eui#7564))
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.

EuiHeaderBreadcrumbs popover arrow
4 participants