Skip to content

Enhance button theme to support direction #6606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 2, 2023
Merged

Enhance button theme to support direction #6606

merged 8 commits into from
Feb 2, 2023

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Jan 27, 2023

What does this PR do?

Adds theme.button[kind].directionto allow theme to drive the direction of icon + label.

Where should the reviewer start?

src/js/themes/base.js

What testing has been done on this PR?

Locally in storybook:

Screen Shot 2023-01-26 at 4 08 19 PM

Added jest test as well.

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Related to grommet/hpe-design-system#3117

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Yes.

Should this PR be mentioned in the release notes?

Yes.

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

@taysea taysea changed the title Enhance button theme to support direction and kind specific label size Enhance button theme to support direction Feb 1, 2023
Copy link
Collaborator

@halocline halocline left a comment

Choose a reason for hiding this comment

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

Typos, otherwise looks good.

@ericsoderberghp
Copy link
Contributor

Typos, otherwise looks good.

accidental Spanish version :)

taysea and others added 4 commits February 1, 2023 16:21
Co-authored-by: Matthew Glissmann <mdglissmann@gmail.com>
Co-authored-by: Matthew Glissmann <mdglissmann@gmail.com>
Co-authored-by: Matthew Glissmann <mdglissmann@gmail.com>
Co-authored-by: Matthew Glissmann <mdglissmann@gmail.com>
@taysea taysea requested a review from halocline February 2, 2023 00:21
@ericsoderberghp ericsoderberghp merged commit 4715640 into grommet:master Feb 2, 2023
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.

3 participants