Skip to content

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Feb 23, 2023

What does this PR do?

Adds theme.tabs.header.alignSelf to allow theme to drive alignment of Tabs header along axis. This moves where alignControls property applies to fix a bug from when responsive tabs was added.

Where should the reviewer start?

src/js/components/Tabs/Tabs.js

What testing has been done on this PR?

Tested in a storybook, added a test.

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/grommet-theme-hpe#308

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Yes.

Should this PR be mentioned in the release notes?

Yes. Added theme.tabs.header.alignSelf to theme.

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

Backwards compatible.

@taysea taysea changed the title Allow align of controls to be theme driven Allow align of Tab controls to be theme driven Feb 23, 2023
@ericsoderberghp ericsoderberghp merged commit 02b7d7b into grommet:master Feb 23, 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.

2 participants