Skip to content

Conversation

@acstll
Copy link
Contributor

@acstll acstll commented Oct 9, 2025

Summary

Fixes #9079

Adjusts the prismjs theme in EuiCodeBlock to improve the yaml language.

Why are we making this change?

To improve the usefulness of EuiCodeBlock (and of course to fulfill the request)

Screenshots

Toggle screenshots

Before

Screenshot 2025-10-09 at 15 29 37 Screenshot 2025-10-09 at 15 29 49

After

Screenshot 2025-10-09 at 15 29 15 Screenshot 2025-10-09 at 15 28 48

Impact to users

🟢 Little to no impact. We need to check whether the new selector could be affecting any other languages in any meaningful way.

Checked snippets of the following languages and they're not affected:

  • json
  • jsx
  • bash
  • shell
  • dotnet
  • java
  • xml

QA

Remove or strikethrough items that do not apply to your PR.

General checklist

@acstll acstll self-assigned this Oct 9, 2025
@acstll acstll added skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) support-duty-flywheel Label for PRs, see eui-private #310 labels Oct 9, 2025
@acstll acstll marked this pull request as ready for review October 9, 2025 13:54
@acstll acstll requested a review from a team as a code owner October 9, 2025 13:54
@acstll acstll removed the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Oct 9, 2025
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @acstll

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

cc @acstll

}
.token.atrule .token.rule,
.token.key.atrule,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice find! It's great that it was such a straight forward fix 🎉

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.

🟢 EuiCodeBlock with yml/yaml is styled correctly now with the update. Thanks for fixing it!

@acstll acstll merged commit c6ca6a2 into elastic:main Oct 14, 2025
7 checks passed
tsullivan pushed a commit that referenced this pull request Oct 15, 2025
acstll added a commit to elastic/kibana that referenced this pull request Oct 23, 2025
- `@elastic/eui`: `v107.0.0` ⏩ `v107.0.1`
- `@elastic/eslint-plugin-eui`: `v2.4.0` ⏩ `v2.5.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)

---

## Changes

Related to elastic/eui#9100

- Updated snapshot f90ae29
- Added missing `aria-label` for `EuiBetaBadge`
  - [Reporting] 6d10edd
  - [ML] ce58009
- Added new translation key, ran `node scripts/i18n_check` — is there
anything else that should be done in this regard?

## Package updates

### `@elastic/eui`
[`v107.0.1`](https://github.com/elastic/eui/releases/v107.0.1)

**Bug fixes**

- Fixed `prismjs` theme in `EuiCodeBlock` to improve highlighting for
the `yaml` language ([#9089](elastic/eui#9089))
- Fixed a visual bug on `EuiTable` where the border for rows in dark
mode wasn't applied correctly
([#9115](elastic/eui#9115))

**Dependency updates**

- Updated `@elastic/prismjs-esql` to v1.1.2
([#9102](elastic/eui#9102))

**Accessibility**

- Fixed incorrect role attribute on `EuiIcon` and `EuiBetaBadge`
([#9100](elastic/eui#9100))
- Make `EuiBasicTable` respect user's reduced motion setting by not
animating when in loading state.
([#9095](elastic/eui#9095))

### `@elastic/eslint-plugin-eui`
[`v2.5.0`](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2025.md#v250)

- Added new `accessible-interactive-element` rule.
([#9093](elastic/eui#9093))
- Added new `tooltip-focusable-anchor` rule.
([#9051](elastic/eui#9051))
- Excluded `EuiButtonEmpty` from the `no-unnamed-interactive-element`
rule. ([#9046](elastic/eui#9046))

**Bug fixes**

- Fixed `no-css-color` rule to allow CSS keywords like `currentcolor`,
`transparent`, and `inherit`
([#9092](elastic/eui#9092))

---------

Co-authored-by: kibanamachine <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

support-duty-flywheel Label for PRs, see eui-private #310

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yaml syntax in EuiCodeBlock could be better

3 participants