Skip to content

Deprecate all usages of secondary as a color type #4882

Closed

Description

@cchaos

#4874 Does this for all of our buttons, but there are still other usages like in EuiExpression and EuiBadge. We should get to a better consistency across the board and add success while deprecating secondary.

For someone who takes this on, you can see the referenced issue as an example.

Activity

  1. babs20 commented on Jun 16, 2021

    @babs20
    Contributor

    Hello! Can I be assigned to this issue?

  2. cchaos commented on Jun 16, 2021

    @cchaos
    ContributorAuthor

    👋 Welcome @babs20! Feel free to tackle any of the github issues (good first issues are especially great to grab). For more contribution guidance, you can read through the CONTRIBUTING doc. I'll also specifically point out that we don't "assign" issues to community members, but you're always welcome to "claim" it 😉 .

  3. cchaos commented on Jun 16, 2021

    @cchaos
    ContributorAuthor

    I also want to point out that specifically for this issue, we don't want to remove the secondary options just yet. We just need to be sure we add success where we currently support secondary, and add a deprecation notice in the props comment like this:

    * Any of our named colors.
    * **`secondary` color is DEPRECATED, use `success` instead**
    */
    color?: ButtonColor;

  4. babs20 commented on Jun 16, 2021

    @babs20
    Contributor

    I'll also specifically point out that we don't "assign" issues to community members, but you're always welcome to "claim" it 😉 .

    Sounds good, and thanks for letting me know!

    I also want to point out that specifically for this issue, we don't want to remove the secondary options just yet. We just need to be sure we add success where we currently support secondary, and add a deprecation notice in the props comment like this:

    * Any of our named colors.
    * **`secondary` color is DEPRECATED, use `success` instead**
    */
    color?: ButtonColor;

    Thanks for the heads up! I will keep this in mind.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions