Skip to content

Provide default responsive subtitle behavior for PageHeader #6689

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 1 commit into from
Mar 17, 2023
Merged

Provide default responsive subtitle behavior for PageHeader #6689

merged 1 commit into from
Mar 17, 2023

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Mar 17, 2023

What does this PR do?

This PR adds functionality that automatically reduces the PageHeader subtitle size to medium. This is a reasonable value for HPE theme to ensure the subtitle remains smaller than the Heading (see screenshots below). large was not chosen because it would have the same font-size as the heading.

This does not effect Grommet theme which already uses a value of medium.

This only applies to the default size of PageHeader which is the main use case in HPE applications currently.

Where should the reviewer start?

src/js/components/PageHeader/PageHeader.js

What testing has been done on this PR?

Local storybook with HPE next branch.

DESKTOP
Screen Shot 2023-03-16 at 9 19 00 PM

MOBILE
Screen Shot 2023-03-16 at 9 19 06 PM

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?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

No.

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 requested a review from ericsoderberghp March 17, 2023 04:28
@ericsoderberghp ericsoderberghp merged commit 14d7e32 into grommet:master Mar 17, 2023
@taysea taysea deleted the responsive-subtitle-pageheader branch March 17, 2023 15:10
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