Skip to content
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

tweak popover css #2055

Merged
merged 6 commits into from
Jun 7, 2023
Merged

tweak popover css #2055

merged 6 commits into from
Jun 7, 2023

Conversation

keithamus
Copy link
Member

@keithamus keithamus commented Jun 1, 2023

Authors: Please fill out this form carefully and completely.

Reviewers: By approving this Pull Request you are approving the code change, as well as its deployment and mitigation plans.
Please read this description carefully. If you feel there is anything unclear or missing, please ask for updates.

What are you trying to accomplish?

Screenshots

N/A

Integration

List the issues that this change affects.

Fixes issues reported in https://github.com/orgs/community/discussions/52083#discussioncomment-5983786

Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

What approach did you choose and why?

I've tweaked the CSS to account for cases where the browser supports :open, :popover-open, both, or neither.

The trade-off is slightly more CSS. The risk is that future iterations on the CSS may cause regressions (but that was true anyway).

Anything you want to highlight for special attention from reviewers?

I've tested this in some specific browser combinations, and what used to be buggy behaviour is now consistent:

  • Safari Technical Preview 166
  • Chrome 113 (with Experimental Web Platform Features enabled)
  • Seamonkey 2.53.16 (Firefox 91)
  • Waterfox Classic 2022.11
  • Qutebrowser 2.5.4 (Chromium 87)

I've also tested this with and without the upstream patches in oddbird/popover-polyfill#103 and it works identically in both, which is a very good sign.

Accessibility

  • No new axe scan violation - This change does not introduce any new axe scan violations.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@keithamus keithamus requested a review from a team as a code owner June 1, 2023 16:23
@keithamus keithamus requested a review from jonrohan June 1, 2023 16:23
@changeset-bot
Copy link

changeset-bot bot commented Jun 1, 2023

🦋 Changeset detected

Latest commit: 8def7ce

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@keithamus keithamus temporarily deployed to preview June 1, 2023 16:23 — with GitHub Actions Inactive
@github-actions github-actions bot added the css Pull requests that update CSS code label Jun 1, 2023
@keithamus keithamus temporarily deployed to preview June 1, 2023 16:40 — with GitHub Actions Inactive
@camertron camertron requested a review from a team June 6, 2023 17:27
@camertron camertron temporarily deployed to preview June 6, 2023 17:27 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to preview June 6, 2023 17:40 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to preview June 6, 2023 20:57 — with GitHub Actions Inactive
@camertron camertron temporarily deployed to github-pages June 6, 2023 21:01 — with GitHub Actions Inactive
@camertron
Copy link
Contributor

Hey @keithamus, I looked into the build failure just now and discovered it's happening because we're using an older version of autoprefixer in docs/. We can't upgrade because our old version of Gatsby restricts which version of autoprefixer we can install. I think the solution here is to disable autoprefixer for primer_view_components.css, since it's already been run through autoprefixer by the build script. I went ahead and made that change to this PR. Looks like the build is passing now.

@keithamus
Copy link
Member Author

Thanks for tackling that @camertron!

@camertron camertron disabled auto-merge June 7, 2023 17:40
@camertron camertron merged commit 5911ff9 into main Jun 7, 2023
@primer-css primer-css mentioned this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css Pull requests that update CSS code patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants