Skip to content

[ESLint plugin] Remove auto-fix from tooltip_button_icon_wrap - #9695

Merged
weronikaolejniczak merged 2 commits into
elastic:mainfrom
weronikaolejniczak:fix/eslint-rule
Jun 1, 2026
Merged

weronikaolejniczak merged 2 commits into
elastic:mainfrom
weronikaolejniczak:fix/eslint-rule

Conversation

@weronikaolejniczak

@weronikaolejniczak weronikaolejniczak commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Kibana CI is automatically applying fixes once linter runs. We want to remove the auto-fix from the rule to avoid broken PRs. I'm addressing all cases myself (see here).

QA instructions for reviewer

@weronikaolejniczak weronikaolejniczak self-assigned this Jun 1, 2026
@weronikaolejniczak weronikaolejniczak changed the title fix(eslint-plugin): remove auto-fix from tooltip_button_icon_wrap [ESLint plugin] Remove auto-fix from tooltip_button_icon_wrap Jun 1, 2026
@weronikaolejniczak
weronikaolejniczak marked this pull request as ready for review June 1, 2026 10:55
@weronikaolejniczak
weronikaolejniczak requested a review from a team as a code owner June 1, 2026 10:55
Copilot AI review requested due to automatic review settings June 1, 2026 10:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the @elastic/eslint-plugin-eui accessibility rule tooltip-button-icon-wrap to stop providing auto-fixes, preventing downstream CI systems (e.g., Kibana) from automatically applying potentially disruptive fixes during lint runs.

Changes:

  • Removed all fix functions and meta.fixable from the tooltip-button-icon-wrap rule.
  • Updated rule tests and README documentation to reflect that the rule no longer auto-fixes.
  • Added an upcoming changelog entry documenting the behavior change.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
packages/eslint-plugin/src/rules/a11y/tooltip_button_icon_wrap.ts Removes fixer logic and updates rule messages.
packages/eslint-plugin/src/rules/a11y/tooltip_button_icon_wrap.test.ts Updates tests by removing expected fixed outputs.
packages/eslint-plugin/README.md Updates documentation to no longer claim auto-fix behavior.
packages/eslint-plugin/changelogs/upcoming/9695.md Adds changelog note about removing auto-fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

cc @weronikaolejniczak

@elasticmachine

Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

cc @weronikaolejniczak

@mgadewoll mgadewoll left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Changes are LGTM. Tested locally that the rule doesn't auto fix usages anymore 👍

@weronikaolejniczak
weronikaolejniczak merged commit fa26c81 into elastic:main Jun 1, 2026
2 checks passed
JasonStoltz pushed a commit to elastic/kibana that referenced this pull request Jun 24, 2026
## Dependency updates

`@elastic/eui` - v116.2.0 ⏩ v116.3.1
`@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.0

## Package updates

### `@elastic/eui`
[v116.3.1](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

**Bug fixes**

- Fixed `EuiTableHeaderCell` and `EuiTableHeaderCellCheckbox` throwing
an error in Jest test environments due to static mocking of
`useGeneratedHtmlId` by generating a stable, unique key with `uuidv4`
([#9698](elastic/eui#9698))
- Fixed an issue where the tooltip anchor wrapper in `EuiAvatar` did not
have the same `border-radius` applied as the avatar itself.
([#9697](elastic/eui#9697))


### `@elastic/eui`
[v116.3.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Added `EuiBanner` component
([#9673](elastic/eui#9673))
- Replaced native browser `title` attributes with `EuiToolTip` across
the following components for consistent tooltips:
([#9643](elastic/eui#9643))
  - `EuiAvatar`
  - `EuiBasicTable`
  - `EuiBreadcrumbs`
  - `EuiComboBox`
  - `EuiDataGrid`
  - `EuiAutoRefresh`
  - `EuiSuperDatePicker`
  - `EuiFieldPassword`
  - `EuiMarkdownEditor`
  - `EuiPagination`
  - `EuiSearchBar`
  - `EuiSelectable`
  - `EuiTextTruncate`
- Extended `EuiToolTip`'s `display` prop to support `"flex"`
([#9643](elastic/eui#9643))
- Added experimental support for sticky headers in `EuiTable`,
`EuiBasicTable` and `EuiInMemoryTable`
([#9682](elastic/eui#9682))

**Bug fixes**

- Fixed `direction="row"` not applying on `EuiSplitPanel.Outer` when
`onClick` was set. ([#9693](elastic/eui#9693))
- Fixed `EuiDatePicker` firing `onChange` with an out-of-bounds date
when navigating to a month or year via the dropdowns while `minDate` or
`maxDate` is set ([#9685](elastic/eui#9685))
- Fixed a visual issue on `EuiPanel` where panels with `onClick` would
render with a `height` difference of `1px`.
([#9694](elastic/eui#9694))
- Fixed an issue in `EuiSelectable` and `EuiComboBox` where interactive
content in group labels wasn't clickable due to overlapping content.
([#9678](elastic/eui#9678))
### `@elastic/eslint-plugin-eui`
[v2.14.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Removed auto-fix from `tooltip-button-icon-wrap` rule
([#9695](elastic/eui#9695))

---------

Co-authored-by: Tomasz Kajtoch <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Lene Gadewoll <[email protected]>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request Aug 5, 2026
## Dependency updates

`@elastic/eui` - v116.2.0 ⏩ v116.3.1
`@elastic/eslint-plugin-eui` - v2.13.0 ⏩ v2.14.0

## Package updates

### `@elastic/eui`
[v116.3.1](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

**Bug fixes**

- Fixed `EuiTableHeaderCell` and `EuiTableHeaderCellCheckbox` throwing
an error in Jest test environments due to static mocking of
`useGeneratedHtmlId` by generating a stable, unique key with `uuidv4`
([elastic#9698](elastic/eui#9698))
- Fixed an issue where the tooltip anchor wrapper in `EuiAvatar` did not
have the same `border-radius` applied as the avatar itself.
([elastic#9697](elastic/eui#9697))


### `@elastic/eui`
[v116.3.0](https://github.com/elastic/eui/blob/main/packages/eui/changelogs/CHANGELOG_2026.md)

- Added `EuiBanner` component
([elastic#9673](elastic/eui#9673))
- Replaced native browser `title` attributes with `EuiToolTip` across
the following components for consistent tooltips:
([elastic#9643](elastic/eui#9643))
  - `EuiAvatar`
  - `EuiBasicTable`
  - `EuiBreadcrumbs`
  - `EuiComboBox`
  - `EuiDataGrid`
  - `EuiAutoRefresh`
  - `EuiSuperDatePicker`
  - `EuiFieldPassword`
  - `EuiMarkdownEditor`
  - `EuiPagination`
  - `EuiSearchBar`
  - `EuiSelectable`
  - `EuiTextTruncate`
- Extended `EuiToolTip`'s `display` prop to support `"flex"`
([elastic#9643](elastic/eui#9643))
- Added experimental support for sticky headers in `EuiTable`,
`EuiBasicTable` and `EuiInMemoryTable`
([elastic#9682](elastic/eui#9682))

**Bug fixes**

- Fixed `direction="row"` not applying on `EuiSplitPanel.Outer` when
`onClick` was set. ([elastic#9693](elastic/eui#9693))
- Fixed `EuiDatePicker` firing `onChange` with an out-of-bounds date
when navigating to a month or year via the dropdowns while `minDate` or
`maxDate` is set ([elastic#9685](elastic/eui#9685))
- Fixed a visual issue on `EuiPanel` where panels with `onClick` would
render with a `height` difference of `1px`.
([elastic#9694](elastic/eui#9694))
- Fixed an issue in `EuiSelectable` and `EuiComboBox` where interactive
content in group labels wasn't clickable due to overlapping content.
([elastic#9678](elastic/eui#9678))
### `@elastic/eslint-plugin-eui`
[v2.14.0](https://github.com/elastic/eui/blob/main/packages/eslint-plugin/changelogs/CHANGELOG_2026.md)

- Removed auto-fix from `tooltip-button-icon-wrap` rule
([elastic#9695](elastic/eui#9695))

---------

Co-authored-by: Tomasz Kajtoch <[email protected]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Lene Gadewoll <[email protected]>
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