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

SHS-6000: Stanford login font link changes #1705

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

mariannuar
Copy link
Collaborator

READY FOR REVIEW

Summary

Fix Stanford login font link

Urgency

medium

Note

In the hs_admin module there's a preprocess function in line 131 that check if there's a SAML form and adds a class simplesamlphp-auth-login-link, but it's not working. Something in the stanford_samlauth is working different or I'm not sure, couldn't find what is causing that preprocess to not add that class. However, using the samlauth-login doesn't seem to be a problem.

Steps to Test

  1. Go to any page using this path /user/login
  2. Confirm the Stanford Login looks like this

Screenshot 2025-01-03 at 12 33 46 PM

PR Checklist

Copy link
Collaborator

@cienvaras cienvaras left a comment

Choose a reason for hiding this comment

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

@mariannuar The fix works, but need to do a couple of things:

  1. The form_alter doesn't work because it's being executed before other form alter that adds the saml element to the form. Let's remove it because it's not needed anymore.
  2. It doesn't make sense to have su_humsci_gin_admin.portal.css minimized, because Drupal will do that for us. Let's update the formatting of the file to use multiple lines and indentation, to make future editing easier.

@ahughes3 ahughes3 temporarily deployed to Tugboat January 6, 2025 21:36 Destroyed
@ahughes3 ahughes3 temporarily deployed to Tugboat January 8, 2025 16:30 Destroyed
Base automatically changed from 11.6.1-release to develop January 8, 2025 16:39
@mariannuar
Copy link
Collaborator Author

@callinmullaney Ready for review!

@ahughes3 ahughes3 temporarily deployed to Tugboat January 8, 2025 19:18 Destroyed
Copy link
Collaborator

@callinmullaney callinmullaney left a comment

Choose a reason for hiding this comment

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

@mariannuar Nice work! The irrelevant form_alter is gone, CSS is no longer minified (because Drupal does this), and the login page matches the screenshot in the ticket. Approved!

@callinmullaney
Copy link
Collaborator

@ahughes3 Confirmed this PR is ready for your review/approval.

@callinmullaney callinmullaney assigned ahughes3 and unassigned ahughes3 and mariannuar Jan 8, 2025
@ahughes3 ahughes3 temporarily deployed to Tugboat January 13, 2025 19:49 Destroyed
Copy link
Collaborator

@ahughes3 ahughes3 left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -1 +1,33 @@
.content-header{background:transparent;text-align:center}.content-header,.layout-container{max-width:600px;margin:0 auto}.user-login-form h1{display:none}.simplesamlphp-auth-login-link{display:inline-block;font-size:32px;padding:30px 0;position:relative;color:#b1040e}.simplesamlphp-auth-login-link::after{content:'\f054';font-family:'Font Awesome 5 Free';font-weight:900;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;color:#9e9e9e;position:absolute;top:calc(50% - 10px);font-size:20px;right:-20px}
.content-header {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the compiled css minified?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@pookmish This was Andres' recommendation as using un-minified CSS to debug styling issues locally much easier without needing to manage multiple CSS compiling profiles based on the environment.
Screenshot 2025-01-13 at 3 10 37 PM

Also, because production and stage config are already being managed via config_split they enable CSS aggregation $config['system.performance']['css']['preprocess'] = TRUE; which minifies the CSS for us. So no need to minify things before they are sent to Drupal to be minified (again) and aggregated into a single file.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, I didn't see the comment and I noticed the diff in the changes. Just making sure that it's intentional. 👍

@ahughes3 ahughes3 temporarily deployed to Tugboat January 13, 2025 21:12 Destroyed
@pookmish pookmish enabled auto-merge (squash) January 13, 2025 22:02
@pookmish pookmish disabled auto-merge January 13, 2025 22:02
@pookmish pookmish changed the base branch from develop to 11.6.3-release January 13, 2025 22:02
@pookmish pookmish merged commit 7c8efe1 into 11.6.3-release Jan 13, 2025
18 checks passed
@pookmish pookmish deleted the shs-6000-fix-stanford-login-font-link branch January 13, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants