Skip to content

Make sure to apply backdrops only to one Overlay#2249

Merged
josepmartins merged 5 commits intoprimer:mainfrom
koddsson:patch-1
Sep 15, 2022
Merged

Make sure to apply backdrops only to one Overlay#2249
josepmartins merged 5 commits intoprimer:mainfrom
koddsson:patch-1

Conversation

@koddsson
Copy link
Copy Markdown
Contributor

What are you trying to accomplish?

I want to make sure backdrop styles are only applied to the correct Overlay. Right now, nested Overlays will inherit their parent overlay styles which makes it impossible to style them correctly.

What approach did you choose and why?

I made sure to use the direct child selector to select the Overlay that a given backdrop should apply to.

What should reviewers focus on?

Is this correct? I just did this quickly and without testing in the GitHub editor.

Can these changes ship as is?

  • This PR does not depend on additional changes. 🚢

@koddsson koddsson requested a review from a team as a code owner September 12, 2022 13:25
@koddsson koddsson requested a review from langermank September 12, 2022 13:25
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 12, 2022

🦋 Changeset detected

Latest commit: da69a14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/css Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

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

Tested this locally, looks good! We can merge even though the deploy is failing (this is a fork)

@josepmartins
Copy link
Copy Markdown
Contributor

LGTM!

@josepmartins josepmartins merged commit 8108377 into primer:main Sep 15, 2022
@primer-css primer-css mentioned this pull request Sep 15, 2022
@koddsson koddsson deleted the patch-1 branch September 19, 2022 12:03
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