Skip to content

[BUG][EuiColorPicker] Option Toggling is rendering the addStop prop onto a DIV incorrectly #7014

Closed as not planned

Description

@1Copenut

Describe the bug
EuiColorPicker option toggle is rendering the addStop prop to a DIV incorrectly. React is warning on this item and

Environment and versions

  • EUI version: v85.0.0 (latest)
  • React version: 17
  • Kibana version (if applicable): n/a
  • Browser: Chrome
  • Operating System: MacOS

To Reproduce
Steps to reproduce the behavior:

  1. Go to CodeSandbox demo for EuiColorPicker option toggling
  2. Click on dev tools in Chromium or Firefox, then click "Console"
  3. See error:
Warning: React does not recognize the `addStop` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `addstop` instead. If you accidentally passed it from a parent component, remove it from the DOM element.

Expected behavior
There should not be an error and the addStep prop should not be rendered into the DOM.

Minimum reproducible sandbox
No sandbox necessary. This is accessible from production docs sandbox listed in To Reproduce

Screenshots
Screen Shot 2023-07-31 at 4 41 13 PM

Activity

  1. added
    ⚠️ needs validation
    on Jul 31, 2023
  2. removed
    ⚠️ needs validation
    on Jul 31, 2023
  3. added
    low hanging fruit
    on Aug 7, 2023
  4. helenrekha commented on Aug 29, 2023

    @helenrekha

    I can work on it. Could you please assign this issue to me?

  5. 1Copenut commented on Aug 29, 2023

    @1Copenut
    ContributorAuthor

    Hi @helenrekha. Thank you for offering to work on this issue. The EuiColorStops element that was causing the issue is scheduled for deprecation.

    EUI has a list of good first issues if you're interested in contributing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    low hanging fruit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions