Skip to content

[EuiCopy] Add tooltipProps prop #8382

Closed

Description

@weronikaolejniczak

Description

The purpose of this task is to add a tooltipProps prop to the EuiCopy component instead of passing tooltip props flat to the component type. This helps to to distinguish tooltip props from the copy functionality props.

It's consistent with other components that consume props to pass to children (e.g. for EuiSuperUpdateButton (code) or EuiButtonGroupButton (code))

Important

Updating the component API will be a breaking change and requires updating implementation usages.

Acceptance criteria

  • added prop tooltipProps to EuiCopy and updated it's prop type definition
  • updated usages/examples across EUI docs
  • tested/verified the API change for usages in Kibana (pre-prepared changes for release upgrade)
  • Since we need to update tests for this anyway, it is probably worth migrating to do as RTL at the same time, assuming it's a small test file.

Rollout consideration

Note on impact / scope of rollout: If we make it a breaking change, there is usage in Kibana we would need to update, but it should be limited and we can handle that ourselves as part of the upgrade.

Activity

  1. changed the title [-][EuiCopy] Add `tooltipProps` prop[/-] [+][EuiCopy] Add `toolTipProps` prop[/+] on Mar 3, 2025
  2. added
    low hanging fruit
    on Mar 6, 2025
  3. changed the title [-][EuiCopy] Add `toolTipProps` prop[/-] [+][EuiCopy] Add `tooltipProps` prop[/+] on May 27, 2025
  4. mgadewoll commented on May 27, 2025

    @mgadewoll
    Contributor

    ℹ We aligned on the naming for the prop: tooltipProps vs toolTipProps
    Both are in use on EUI side but the correct spelling would be without camelCase as it's a single word: tooltipProps. We can't easily update existing usages without adding many breaking changes, but we agreed to use tooltipProps moving forward.

  5. removed their assignment
    on May 27, 2025
  6. added
    breaking change
    on Jun 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

breaking changelow hanging fruit

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions