Skip to content

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Jan 26, 2023

What does this PR do?

Adds theme.layer.overlay.backdropFilter which supports a string value for any CSS supported backdrop-filter.

CSS values: https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter
Backdrop-filter is broadly supported on the web.

Where should the reviewer start?

What testing has been done on this PR?

Locally in storybook:
Screen Shot 2023-01-26 at 3 13 31 PM

How should this be manually tested?

In storybook, adjust custom theme.

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.

@@ -74,6 +74,10 @@ const StyledOverlay = styled.div`
left: 0px;
right: 0px;
bottom: 0px;
${(props) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not jus have?

  ${(props) =>
    props.theme.layer.overlay.backdropFilter &&
       `backdrop-filter: ${props.theme.layer.overlay.backdropFilter};`}

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.

4 participants