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

fix(ConfirmationDialog): use correct border radius on buttons #1246

Merged
merged 3 commits into from
May 21, 2021

Conversation

dgreif
Copy link
Member

@dgreif dgreif commented May 21, 2021

Because the Dialog now allows overflow (From #1203), the smaller border radius from the buttons is overflowing past the larger border radius of the overlay, causing a different appearance in the header vs the footer. This change puts the same border radius on the buttons as what is used in the Dialog so that they match

Second, the ConfirmationDialog title had a hard-coded font-weight of 700. This likely came from the Overaly Prototype, but it is not the correct value. Switching to fontWeights.bold which is 600.

Closes #1239

Screenshots

Before

image

After

image

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

@dgreif dgreif requested a review from VanAnderson May 21, 2021 18:39
@changeset-bot
Copy link

changeset-bot bot commented May 21, 2021

🦋 Changeset detected

Latest commit: b75fdc3

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

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

@vercel
Copy link

vercel bot commented May 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/primer/primer-components/7GJLt3W7d2PLjPFVzCNJSVANyrxs
✅ Preview: https://primer-components-git-dialog-styles-primer.vercel.app

@vercel vercel bot temporarily deployed to Preview May 21, 2021 18:43 Inactive
@vercel vercel bot temporarily deployed to Preview May 21, 2021 19:37 Inactive
Copy link
Contributor

@VanAnderson VanAnderson left a comment

Choose a reason for hiding this comment

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

Looks good!

@dgreif dgreif merged commit aa7d80f into main May 21, 2021
@dgreif dgreif deleted the dialog-styles branch May 21, 2021 20:46
@github-actions github-actions bot mentioned this pull request May 21, 2021
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.

Style issues with confirmation dialog
2 participants