Skip to content

fix: Adjust the GitHub IdP icon - #4723

Merged
marcelomendoncasoares merged 3 commits into
serverpod:mainfrom
vfiruz97:fix/github-idp-button
Feb 13, 2026
Merged

marcelomendoncasoares merged 3 commits into
serverpod:mainfrom
vfiruz97:fix/github-idp-button

Conversation

@vfiruz97

Copy link
Copy Markdown
Contributor

This PR fixes the GitHub IdP's icon alignment issue.

Fixes #4720.

Pre-launch Checklist

  • I read the Contribute page and followed the process outlined there for submitting PRs.
  • This update contains only one single feature or bug fix and nothing else. (If you are submitting multiple fixes, please make multiple PRs.)
  • I read and followed the Dart Style Guide and formatted the code with dart format.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.
  • I added new tests to check the change I am making.
  • All existing and new tests are passing.
  • Any breaking changes are documented below.

If you need help, consider asking for advice on the discussion board.

Breaking changes

No breaking changes.

@vfiruz97

Copy link
Copy Markdown
Contributor Author

Hi @marcelomendoncasoares,
Fixed icon alignment and decreased the icon size to match others IdPs style.
This is ready for a review.

image image

@marcelomendoncasoares marcelomendoncasoares left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the quick fix! When looking at all providers aligned to the left, it is still a bit off on the alignment.

Image

This is the test code I'm using on the stories app:

Widget _signInWidgetStory(
  BuildContext context, {
  bool disableAnonymousSignInWidget = false,
  bool disableEmailSignInWidget = false,
  bool disableGoogleSignInWidget = false,
  bool disableAppleSignInWidget = false,
  bool disableGitHubSignInWidget = false,
}) {
  return SizedBox(
    width: 400,
    child: SignInWidget(
      client: context.read<Client>(),
      onAuthenticated: () {
        context.showSuccessSnackBar('Authenticated!');
      },
      onError: (error) {
        context.showErrorSnackBar(error.toString());
      },
      disableAnonymousSignInWidget: disableAnonymousSignInWidget,
      disableEmailSignInWidget: disableEmailSignInWidget,
      disableGoogleSignInWidget: disableGoogleSignInWidget,
      disableAppleSignInWidget: disableAppleSignInWidget,
      disableGitHubSignInWidget: disableGitHubSignInWidget,
      googleSignInWidget: GoogleSignInWidget(
        logoAlignment: GSIButtonLogoAlignment.left,
        client: context.read<Client>(),
        onAuthenticated: () {
          context.showSuccessSnackBar('Authenticated!');
        },
        onError: (error) {
          context.showErrorSnackBar(error.toString());
        },
      ),
      appleSignInWidget: AppleSignInWidget(
        logoAlignment: AppleButtonLogoAlignment.left,
        client: context.read<Client>(),
        onAuthenticated: () {
          context.showSuccessSnackBar('Authenticated!');
        },
        onError: (error) {
          context.showErrorSnackBar(error.toString());
        },
      ),
      githubSignInWidget: GitHubSignInWidget(
        logoAlignment: GitHubButtonLogoAlignment.left,
        client: context.read<Client>(),
        onAuthenticated: () {
          context.showSuccessSnackBar('Authenticated!');
        },
        onError: (error) {
          context.showErrorSnackBar(error.toString());
        },
      ),
    ),
  );
}

@vfiruz97

Copy link
Copy Markdown
Contributor Author

Thanks for the quick fix! When looking at all providers aligned to the left, it is still a bit off on the alignment.

Cool, I see that disalignment by text. I will check again and fix.

@vfiruz97

vfiruz97 commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor Author

It was a bit tricky as the Google and Apple buttons actually use different layouts, and they are not vertically aligned when compare them. I think it is ok, due to different fonts and svg size. But to make visually look good, I've chosen to align the GitHub button closer to the Google widget for consistency.

image

@vfiruz97
vfiruz97 force-pushed the fix/github-idp-button branch from 2c3a52e to 7d55116 Compare February 12, 2026 21:51

@marcelomendoncasoares marcelomendoncasoares left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! I made only one last adjustment on the font weight.

@marcelomendoncasoares
marcelomendoncasoares merged commit e2df24b into serverpod:main Feb 13, 2026
138 of 142 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub IDP text is not kept centered when aligning the icon to the left

2 participants